暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.gradle 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apply plugin: 'com.android.library'
  2. dependencies {
  3. implementation fileTree(dir: 'libs', include: ['*.jar'])
  4. implementation 'androidx.appcompat:appcompat:1.2.0'
  5. implementation(name: 'UniWebView', ext:'aar')
  6. implementation(name: 'install-debug', ext:'aar')
  7. implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.6.21'
  8. implementation 'androidx.browser:browser:1.2.0'
  9. }
  10. android {
  11. compileSdkVersion 30
  12. buildToolsVersion '30.0.2'
  13. compileOptions {
  14. sourceCompatibility JavaVersion.VERSION_1_8
  15. targetCompatibility JavaVersion.VERSION_1_8
  16. }
  17. defaultConfig {
  18. minSdkVersion 22
  19. targetSdkVersion 30
  20. ndk {
  21. abiFilters 'armeabi-v7a'
  22. }
  23. versionCode 1
  24. versionName '1.0'
  25. consumerProguardFiles 'proguard-unity.txt'
  26. }
  27. lintOptions {
  28. abortOnError false
  29. }
  30. aaptOptions {
  31. noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
  32. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
  33. }
  34. packagingOptions {
  35. doNotStrip '*/armeabi-v7a/*.so'
  36. }
  37. }