build.gradle 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. // GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
  2. buildscript {
  3. ext.kotlin_version = "1.4.20"
  4. repositories {
  5. google()
  6. jcenter()
  7. }
  8. dependencies {
  9. classpath 'com.android.tools.build:gradle:3.4.0'
  10. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
  11. classpath "com.tencent.bugly:tinker-support:+"
  12. }
  13. }
  14. allprojects {
  15. repositories {
  16. google()
  17. jcenter()
  18. flatDir {
  19. dirs 'libs'
  20. }
  21. }
  22. }
  23. apply plugin: 'com.android.application'
  24. apply from: 'tinker-support.gradle'
  25. dependencies {
  26. implementation fileTree(dir: 'libs', include: ['*.jar'])
  27. implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
  28. implementation "com.android.support:multidex:1.0.3"
  29. implementation "com.tencent.bugly:nativecrashreport:latest.release"
  30. implementation "com.tencent.bugly:crashreport_upgrade:latest.release"
  31. implementation "com.tencent.tinker:tinker-android-lib:latest.release"
  32. implementation "androidx.appcompat:appcompat:1.3.1"
  33. implementation 'androidx.core:core-ktx:1.6.0'
  34. implementation 'androidx.recyclerview:recyclerview:1.2.1'
  35. implementation "com.squareup.okhttp3:okhttp:4.9.0"
  36. implementation "io.coil-kt:coil:1.3.2"
  37. implementation(name: 'sdklibrary-release', ext:'aar')
  38. implementation project(':unity-android-resources')
  39. }
  40. android {
  41. compileSdkVersion 30
  42. compileOptions {
  43. sourceCompatibility JavaVersion.VERSION_1_8
  44. targetCompatibility JavaVersion.VERSION_1_8
  45. }
  46. defaultConfig {
  47. minSdkVersion 22
  48. targetSdkVersion 30
  49. applicationId 'com.ouj.dance'
  50. ndk {
  51. abiFilters 'armeabi-v7a'
  52. }
  53. versionCode 103
  54. versionName '1.1.3'
  55. multiDexEnabled true
  56. }
  57. android.applicationVariants.all { variant ->
  58. variant.outputs.all { output ->
  59. def outputFile = output.outputFile
  60. def releaseTime = new Date().format("yyyyMMddHHmmss")
  61. if (outputFile != null && outputFile.name.endsWith('.apk')) {
  62. outputFileName = "KeepDancing" + "_" + defaultConfig.versionName + "_" + releaseTime + "_" + output.baseName + ".apk"
  63. }
  64. }
  65. }
  66. lintOptions {
  67. abortOnError false
  68. }
  69. aaptOptions {
  70. noCompress = ['.unity3d', '.ress', '.resource', '.obb', 'null.txt']
  71. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  72. }
  73. signingConfigs {
  74. release {
  75. storeFile file("signed.jks")
  76. storePassword "111111"
  77. keyAlias "OUJ_SHOES"
  78. keyPassword "111111"
  79. }
  80. }
  81. buildTypes {
  82. debug {
  83. minifyEnabled false
  84. useProguard false
  85. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt', 'proguard-user.txt'
  86. signingConfig signingConfigs.release
  87. jniDebuggable true
  88. }
  89. release {
  90. minifyEnabled false
  91. useProguard false
  92. proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt', 'proguard-user.txt'
  93. signingConfig signingConfigs.release
  94. }
  95. }
  96. packagingOptions {
  97. doNotStrip '*/armeabi-v7a/*.so'
  98. doNotStrip '*/x86/*.so'
  99. }
  100. bundle {
  101. language {
  102. enableSplit = false
  103. }
  104. density {
  105. enableSplit = false
  106. }
  107. abi {
  108. enableSplit = true
  109. }
  110. }
  111. }