Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- google()
- jcenter()
- maven { url 'https://plugins.gradle.org/m2/'}
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.4.0'
- classpath 'gradle.plugin.com.onesignal:onesignal-gradle-plugin:[0.12.3, 0.99.99]'
- **BUILD_SCRIPT_DEPS**}
- }
- allprojects {
- repositories {
- jcenter()
- maven { url 'https://maven.google.com' }
- flatDir {
- dirs 'libs'
- }
- google()
- }
- }
- productFlavors {
- legacy {
- minSdkVersion 21
- }
- // Android Resolver Repos Start
- ([rootProject] + (rootProject.subprojects as List)).each {
- ext {
- it.setProperty("android.useAndroidX", true)
- it.setProperty("android.enableJetifier", true)
- }
- }
- ([rootProject] + (rootProject.subprojects as List)).each { project ->
- project.repositories {
- def unityProjectPath = "file:///" + file(rootProject.projectDir.path + "/../../").absolutePath
- maven {
- url "https://maven.google.com"
- }
- mavenLocal()
- jcenter()
- mavenCentral()
- }
- }
- // Android Resolver Repos End
- apply plugin: 'com.android.application'
- apply plugin: 'com.onesignal.androidsdk.onesignal-gradle-plugin'
- **APPLY_PLUGINS**
- dependencies {
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- // Android Resolver Dependencies Start
- implementation 'com.android.support:support-v4:[26.1.0,)' // Assets/Pushwoosh/Editor/PushwooshDependencies.xml:4
- implementation 'com.google.firebase:firebase-messaging:[15.0.2,19.0.0)' // Assets/Pushwoosh/Editor/PushwooshDependencies.xml:9
- implementation 'com.pushwoosh:pushwoosh:5.17.0' // Assets/Pushwoosh/Editor/PushwooshDependencies.xml:5
- implementation 'com.pushwoosh:pushwoosh-amazon:5.17.0' // Assets/Pushwoosh/Editor/PushwooshDependencies.xml:6
- implementation 'com.pushwoosh:pushwoosh-badge:5.17.0' // Assets/Pushwoosh/Editor/PushwooshDependencies.xml:7
- implementation fileTree(dir: 'libs', include: ['*.jar'])
- implementation 'com.google.android.gms:play-services-ads-identifier:16.0.0'
- implementation 'com.android.support:support-v4:27.1.1'
- // Android Resolver Dependencies End
- **DEPS**}
- // Android Resolver Exclusions Start
- android {
- packagingOptions {
- exclude ('/lib/armeabi/*' + '*')
- exclude ('/lib/mips/*' + '*')
- exclude ('/lib/mips64/*' + '*')
- exclude ('/lib/x86/*' + '*')
- exclude ('/lib/x86_64/*' + '*')
- }
- }
- // Android Resolver Exclusions End
- android {
- compileSdkVersion **APIVERSION**
- buildToolsVersion '**BUILDTOOLS**'
- compileOptions {
- sourceCompatibility JavaVersion.VERSION_1_8
- targetCompatibility JavaVersion.VERSION_1_8
- }
- defaultConfig {
- minSdkVersion **MINSDKVERSION**
- targetSdkVersion **TARGETSDKVERSION**
- applicationId '**APPLICATIONID**'
- ndk {
- abiFilters **ABIFILTERS**
- }
- versionCode **VERSIONCODE**
- versionName '**VERSIONNAME**'
- }
- lintOptions {
- abortOnError false
- }
- aaptOptions {
- noCompress = ['.unity3d', '.ress', '.resource', '.obb'**STREAMING_ASSETS**]
- ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"
- }**SIGN**
- buildTypes {
- debug {
- minifyEnabled **MINIFY_DEBUG**
- useProguard **PROGUARD_DEBUG**
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
- jniDebuggable true
- }
- release {
- minifyEnabled **MINIFY_RELEASE**
- useProguard **PROGUARD_RELEASE**
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-unity.txt'**USER_PROGUARD****SIGNCONFIG**
- }
- }**PACKAGING_OPTIONS****SPLITS**
- **BUILT_APK_LOCATION**
- **EXTERNAL_SOURCES**
- bundle {
- language {
- enableSplit = false
- }
- density {
- enableSplit = false
- }
- abi {
- enableSplit = true
- }
- }
- }**SPLITS_VERSION_CODE****REPOSITORIES****SOURCE_BUILD_SETUP**
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement