Skip to content

Commit

Permalink
[firebase_auth_web] Add noop Android implementation. (firebase#1628)
Browse files Browse the repository at this point in the history
This is a mitigation for certain build paths that expect an android/ directory on every plugin (regardless of the platform)
  • Loading branch information
ditman authored and Michael Klimushyn committed Dec 12, 2019
1 parent b41ca63 commit d2fffce
Show file tree
Hide file tree
Showing 9 changed files with 77 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/firebase_auth/firebase_auth_web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.1.1+1

* Add an android/ folder with no-op implementation to workaround https://github.com/flutter/flutter/issues/46898

## 0.1.1

* Require Flutter SDK version 1.12.13+hotfix.4 or later.
Expand Down
8 changes: 8 additions & 0 deletions packages/firebase_auth/firebase_auth_web/android/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
33 changes: 33 additions & 0 deletions packages/firebase_auth/firebase_auth_web/android/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
group 'io.flutter.plugins.firebaseauth_web'
version '1.0'

buildscript {
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
}
}

rootProject.allprojects {
repositories {
google()
jcenter()
}
}

apply plugin: 'com.android.library'

android {
compileSdkVersion 28

defaultConfig {
minSdkVersion 16
}
lintOptions {
disable 'InvalidPackage'
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.gradle.jvmargs=-Xmx1536M
android.enableR8=true
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-all.zip
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'firebaseauth_web'
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.flutter.plugins.firebaseauth_web">
</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package io.flutter.plugins.firebaseauth_web;

import io.flutter.embedding.engine.plugins.FlutterPlugin;
import io.flutter.plugin.common.MethodCall;
import io.flutter.plugin.common.MethodChannel.Result;
import io.flutter.plugin.common.PluginRegistry.Registrar;

/** FirebaseAuthWebPlugin */
public class FirebaseAuthWebPlugin implements FlutterPlugin {
@Override
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {}

public static void registerWith(Registrar registrar) {}

@Override
public void onMethodCall(MethodCall call, Result result) {}

@Override
public void onDetachedFromEngine(FlutterPluginBinding binding) {}
}
2 changes: 1 addition & 1 deletion packages/firebase_auth/firebase_auth_web/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: firebase_auth_web
description: The web implementation of firebase_auth
homepage: https://github.com/FirebaseExtended/flutterfire/tree/master/packages/firebase_auth/firebase_auth_web
version: 0.1.1
version: 0.1.1+1

flutter:
plugin:
Expand Down

0 comments on commit d2fffce

Please sign in to comment.