peko-android-gms init

This commit is contained in:
zu
2023-11-28 01:52:12 +08:00
commit 1d5b04b34b
17 changed files with 669 additions and 0 deletions

32
build.gradle Normal file
View File

@@ -0,0 +1,32 @@
apply from: "./module_standard.gradle"
android {
namespace 'com.example.module_google'
def gak = project.hasProperty("GOOGLE_APP_KEY") ? GOOGLE_APP_KEY :
"Define GOOGLE_APP_KEY in gradle.properties. Or './gradlew -PGOOGLE_APP_KEY=gak_value ... taskName'"
def gsci = project.hasProperty("GOOGLE_SERVER_CLIENT_ID") ? GOOGLE_SERVER_CLIENT_ID :
"Define GOOGLE_SERVER_CLIENT_ID in gradle.properties. Or 'gradle -PGOOGLE_SERVER_CLIENT_ID=gak_value ... taskName'"
defaultConfig {
buildConfigField "String", "GOOGLE_APP_KEY", "\"$gak\""
buildConfigField "String", "GOOGLE_SERVER_CLIENT_ID", "\"$gsci\""
}
}
kapt {
arguments {
arg("AROUTER_MODULE_NAME", project.getName())
}
}
dependencies {
// google登录
implementation 'com.google.android.gms:play-services-auth:20.7.0'
// googleplay内购
implementation 'com.google.android.gms:play-services-wallet:19.2.1'
implementation 'com.android.billingclient:billing:6.0.1'
// fastjson
implementation "com.alibaba:fastjson:1.2.41"
}