forked from flutter/plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[google_sign_in_web] Add a no-op Android implementation (flutter#2410)
- Loading branch information
Michael Klimushyn
authored
Dec 12, 2019
1 parent
6cce7b6
commit c503911
Showing
8 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
packages/google_sign_in/google_sign_in_web/android/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
group 'io.flutter.plugins.google_sign_in_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' | ||
} | ||
} |
2 changes: 2 additions & 0 deletions
2
packages/google_sign_in/google_sign_in_web/android/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
org.gradle.jvmargs=-Xmx1536M | ||
android.enableR8=true |
5 changes: 5 additions & 0 deletions
5
packages/google_sign_in/google_sign_in_web/android/gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
1 change: 1 addition & 0 deletions
1
packages/google_sign_in/google_sign_in_web/android/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'google_sign_in_web' |
3 changes: 3 additions & 0 deletions
3
packages/google_sign_in/google_sign_in_web/android/src/main/AndroidManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.google_sign_in_web"> | ||
</manifest> |
24 changes: 24 additions & 0 deletions
24
...eb/android/src/main/java/io/flutter/plugins/google_sign_in_web/GoogleSignInWebPlugin.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package io.flutter.plugins.google_sign_in_web; | ||
|
||
import io.flutter.embedding.engine.plugins.FlutterPlugin; | ||
import io.flutter.plugin.common.PluginRegistry.Registrar; | ||
|
||
/** GoogleSignInWebPlugin */ | ||
public class GoogleSignInWebPlugin implements FlutterPlugin { | ||
@Override | ||
public void onAttachedToEngine(FlutterPluginBinding flutterPluginBinding) {} | ||
|
||
// This static function is optional and equivalent to onAttachedToEngine. It supports the old | ||
// pre-Flutter-1.12 Android projects. You are encouraged to continue supporting | ||
// plugin registration via this function while apps migrate to use the new Android APIs | ||
// post-flutter-1.12 via https://flutter.dev/go/android-project-migration. | ||
// | ||
// It is encouraged to share logic between onAttachedToEngine and registerWith to keep | ||
// them functionally equivalent. Only one of onAttachedToEngine or registerWith will be called | ||
// depending on the user's project. onAttachedToEngine or registerWith must both be defined | ||
// in the same class. | ||
public static void registerWith(Registrar registrar) {} | ||
|
||
@Override | ||
public void onDetachedFromEngine(FlutterPluginBinding binding) {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters