android_app.gradle 865 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'com.android.application'
  2. apply from: "$scriptPath/android_base.gradle"
  3. android {
  4. buildTypes.each { bt ->
  5. bt.multiDexEnabled = false
  6. }
  7. signingConfigs {
  8. platform {
  9. storeFile file("$rootDir/aosp_launcher3.jks")
  10. keyAlias "launcher3"
  11. storePassword "aosp_launcher3"
  12. keyPassword "aosp_launcher3"
  13. }
  14. }
  15. buildTypes.each { bt ->
  16. bt.signingConfig = signingConfigs.platform
  17. }
  18. //排除不想添加到apk中的文件
  19. packagingOptions {
  20. exclude 'publicsuffixes.gz'
  21. exclude 'android**'
  22. exclude 'kotlin**'
  23. exclude '/*.proto'
  24. exclude '/google/protobuf/*'
  25. exclude '/*.bin'
  26. exclude 'assets/dexopt**'
  27. exclude 'META-INF**'
  28. }
  29. lint {
  30. baseline = file("lint-baseline.xml")
  31. }
  32. }