build.gradle 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. plugins {
  2. id 'com.android.application'
  3. }
  4. def keystorePropertiesFile = rootProject.file("keystore.properties")
  5. def keystoreProperties = new Properties()
  6. keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
  7. android {
  8. compileSdkVersion rootProject.ext.android.compileSdkVersion
  9. buildToolsVersion rootProject.ext.android.buildToolsVersion
  10. defaultConfig {
  11. applicationId "com.ftsx.eyuangame"
  12. minSdkVersion rootProject.ext.android.minSdkVersion
  13. targetSdkVersion rootProject.ext.android.targetSdkVersion
  14. versionCode 1
  15. versionName "0.0.1"
  16. multiDexEnabled true
  17. }
  18. signingConfigs {
  19. config {
  20. keyAlias keystoreProperties['keyAlias']
  21. keyPassword keystoreProperties['keyPassword']
  22. storeFile file(keystoreProperties['storeFile'])
  23. storePassword keystoreProperties['storePassword']
  24. v1SigningEnabled true
  25. v2SigningEnabled true
  26. }
  27. }
  28. buildTypes {
  29. debug {
  30. minifyEnabled false
  31. signingConfig signingConfigs.config
  32. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  33. }
  34. release {
  35. minifyEnabled false
  36. signingConfig signingConfigs.config
  37. proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
  38. }
  39. }
  40. lintOptions {
  41. abortOnError false
  42. }
  43. repositories {
  44. flatDir {
  45. dirs 'libs'
  46. }
  47. }
  48. dexOptions {
  49. preDexLibraries = false
  50. }
  51. compileOptions {
  52. sourceCompatibility JavaVersion.VERSION_1_8
  53. targetCompatibility JavaVersion.VERSION_1_8
  54. }
  55. }
  56. dependencies {
  57. implementation 'io.github.yyxxgame.sdk:eyuangame-sdk-ktx:1.0.2'
  58. implementation 'io.github.yyxxgame.sdk:eyuangame-component-lang-vn:1.0.2'
  59. // api(name: 'library_core-release', ext: 'aar')
  60. // api(name: 'library_vn_language-release', ext: 'aar')
  61. //
  62. // //mmkv
  63. // implementation 'com.tencent:mmkv-static:1.2.10'
  64. //
  65. // //日志采集框架
  66. // implementation 'io.github.suyghur.dolin:zap:1.0.0'
  67. //
  68. // implementation 'androidx.core:core-ktx:1.7.0'
  69. // implementation 'androidx.fragment:fragment-ktx:1.4.0'
  70. // implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
  71. // implementation 'com.google.android.material:material:1.4.0'
  72. // implementation 'com.android.installreferrer:installreferrer:2.2'
  73. //
  74. // //google
  75. // implementation 'com.google.android.play:core:1.10.2'
  76. // implementation 'com.google.android.gms:play-services-auth:20.0.0'
  77. // //4.0.0的billing库消耗商品会回调两次,后续在排查,先用3.0.3
  78. // implementation "com.android.billingclient:billing-ktx:3.0.3"
  79. // implementation 'com.google.firebase:firebase-analytics-ktx:20.0.2'
  80. // implementation 'com.google.firebase:firebase-crashlytics-ktx:18.2.6'
  81. // implementation 'com.google.firebase:firebase-crashlytics-ndk:18.2.6'
  82. //
  83. // //facebook
  84. // implementation 'com.facebook.android:facebook-android-sdk:11.2.0'
  85. //
  86. // //adjust
  87. // implementation 'com.adjust.sdk:adjust-android:4.28.2'
  88. }