설명 없음
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 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. apply plugin: 'com.android.library'
  2. dependencies {
  3. implementation fileTree(dir: 'libs', include: ['*.jar'])
  4. // Android Resolver Dependencies Start
  5. implementation 'androidx.constraintlayout:constraintlayout:2.1.4' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:12
  6. implementation 'com.google.android.gms:play-services-ads:23.0.0' // Assets/GoogleMobileAds/Editor/GoogleMobileAdsDependencies.xml:7
  7. implementation 'com.google.android.ump:user-messaging-platform:2.2.0' // Assets/GoogleMobileAds/Editor/GoogleUmpDependencies.xml:7
  8. // Android Resolver Dependencies End
  9. implementation(name: 'googlemobileads-unity', ext:'aar')
  10. implementation(name: 'install-debug', ext:'aar')
  11. implementation project('GoogleMobileAdsPlugin.androidlib')
  12. }
  13. // Android Resolver Exclusions Start
  14. android {
  15. packagingOptions {
  16. exclude ('/lib/armeabi/*' + '*')
  17. exclude ('/lib/mips/*' + '*')
  18. exclude ('/lib/mips64/*' + '*')
  19. exclude ('/lib/x86/*' + '*')
  20. exclude ('/lib/x86_64/*' + '*')
  21. }
  22. }
  23. // Android Resolver Exclusions End
  24. android {
  25. ndkPath "D:/2022.3.26f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK"
  26. compileSdkVersion 33
  27. buildToolsVersion '32.0.0'
  28. compileOptions {
  29. sourceCompatibility JavaVersion.VERSION_11
  30. targetCompatibility JavaVersion.VERSION_11
  31. }
  32. defaultConfig {
  33. minSdkVersion 22
  34. targetSdkVersion 33
  35. ndk {
  36. abiFilters 'armeabi-v7a', 'arm64-v8a'
  37. }
  38. versionCode 1
  39. versionName '1.0'
  40. consumerProguardFiles 'proguard-unity.txt'
  41. }
  42. lintOptions {
  43. abortOnError false
  44. }
  45. aaptOptions {
  46. noCompress = ['.unity3d', '.ress', '.resource', '.obb', '.bundle', '.unityexp'] + unityStreamingAssets.tokenize(', ')
  47. ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
  48. }
  49. packagingOptions {
  50. doNotStrip '*/armeabi-v7a/*.so'
  51. doNotStrip '*/arm64-v8a/*.so'
  52. }
  53. }
  54. apply from: 'GoogleMobileAdsPlugin.androidlib\\packaging_options.gradle'