launcherTemplate.gradle 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. apply plugin: 'com.android.application'
  2. apply plugin: 'com.google.gms.google-services'
  3. apply plugin: 'com.google.firebase.crashlytics'
  4. afterEvaluate {
  5. generateReleaseBuildConfig.enabled = false
  6. generateDebugBuildConfig.enabled =false
  7. }
  8. dependencies {
  9. implementation project(':tuanjieLibrary')
  10. }
  11. android {
  12. namespace "**NAMESPACE**"
  13. ndkPath "**NDKPATH**"
  14. compileSdkVersion **APIVERSION**
  15. buildToolsVersion '**BUILDTOOLS**'
  16. compileOptions {
  17. sourceCompatibility JavaVersion.VERSION_11
  18. targetCompatibility JavaVersion.VERSION_11
  19. }
  20. defaultConfig {
  21. minSdkVersion **MINSDKVERSION**
  22. targetSdkVersion **TARGETSDKVERSION**
  23. applicationId '**APPLICATIONID**'
  24. ndk {
  25. abiFilters **ABIFILTERS**
  26. }
  27. versionCode **VERSIONCODE**
  28. versionName '**VERSIONNAME**'
  29. multiDexEnabled true
  30. }
  31. aaptOptions {
  32. noCompress = **BUILTIN_NOCOMPRESS** + tuanjieStreamingAssets.tokenize(', ')
  33. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  34. }**SIGN**
  35. lintOptions {
  36. abortOnError false
  37. }
  38. buildTypes {
  39. debug {
  40. minifyEnabled **MINIFY_DEBUG**
  41. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  42. jniDebuggable true
  43. }
  44. release {
  45. minifyEnabled **MINIFY_RELEASE**
  46. proguardFiles getDefaultProguardFile('proguard-android.txt')**SIGNCONFIG**
  47. }
  48. }**PACKAGING_OPTIONS****PLAY_ASSET_PACKS****SPLITS**
  49. **BUILT_APK_LOCATION**
  50. bundle {
  51. language {
  52. enableSplit = false
  53. }
  54. density {
  55. enableSplit = false
  56. }
  57. abi {
  58. enableSplit = true
  59. }
  60. }
  61. task copyJsonFile {
  62. copy {
  63. delete("D:/unityProject/XY001/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/google-services.json")
  64. from('D:/unityProject/XY001/Assets/PottingMobileSDK/')
  65. into("D:/unityProject/XY001/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/")
  66. include("google-services.json")
  67. println "Copy google-services.json completed.--->> IL2CPP"
  68. }
  69. }
  70. preBuild.dependsOn copyJsonFile
  71. }**SPLITS_VERSION_CODE****LAUNCHER_SOURCE_BUILD_SETUP**