mainTemplate.gradle.backup 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. apply plugin: 'com.android.library'
  2. apply plugin: 'com.android.application'
  3. dependencies {
  4. implementation fileTree(dir: 'libs', include: ['*.jar'])
  5. implementation 'androidx.appcompat:appcompat:1.3.0'
  6. implementation 'com.google.android.material:material:1.4.0'
  7. }
  8. android {
  9. compileSdkVersion 31
  10. buildToolsVersion '31.0.0'
  11. compileOptions {
  12. sourceCompatibility JavaVersion.VERSION_1_8
  13. targetCompatibility JavaVersion.VERSION_1_8
  14. }
  15. defaultConfig {
  16. minSdkVersion 21
  17. targetSdkVersion 31
  18. ndk {
  19. abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  20. }
  21. versionCode 1
  22. versionName '1.0'
  23. consumerProguardFiles 'proguard-unity.txt'
  24. }
  25. lintOptions {
  26. abortOnError false
  27. }
  28. aaptOptions {
  29. noCompress = ['.unity3d', '.ress', '.resource', '.obb'] + unityStreamingAssets.tokenize(', ')
  30. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  31. }
  32. packagingOptions {
  33. exclude 'META-INF/proguard/androidx-annotations.pro'
  34. }
  35. }