Advertisement
Guest User

Untitled

a guest
Nov 12th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 3.92 KB | None | 0 0
  1. // Main build script for WebView App
  2. //
  3. // Usage: gradlew assembleDebug           Build debug APK
  4. //        gradlew assembleRelease         Build release APK
  5.  
  6.  
  7. final VERSION_MAJOR = 2 // max two digits
  8. final VERSION_MINOR = 3 // max two digits
  9. final VERSION_PATCH = 1 // max two digits
  10. final VERSION_BUILD = 0 // max three digits
  11.  
  12.  
  13. apply plugin: "com.android.application"
  14. apply from: "../utils.gradle"
  15.  
  16.  
  17. android {
  18.     compileSdkVersion 28
  19.     buildToolsVersion '28.0.3'
  20.  
  21.     defaultConfig {
  22.         applicationId "social.test.booster"
  23.         minSdkVersion 16
  24.         targetSdkVersion 28
  25.         versionCode getVersionCode(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH, VERSION_BUILD)
  26.         versionName getVersionName(VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH)
  27.  
  28.         // app id and Google project number for OneSignal push notifications,
  29.         // leave these constants empty if you do not want to use push notifications,
  30.         // see https://documentation.onesignal.com for more info
  31.         manifestPlaceholders = [onesignal_app_id: "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX",
  32.                                 onesignal_google_project_number: "XXXXXXXXXXXX"]
  33.     }
  34.  
  35.     signingConfigs {
  36.         release {
  37.             // passwords and alias are obtained via askForPasswords task
  38.             storeFile file("../${project.property('keystore.file')}")
  39.             storePassword ""
  40.             keyAlias ""
  41.             keyPassword ""
  42.         }
  43.     }
  44.  
  45.     buildTypes {
  46.         debug {
  47.             buildConfigField "boolean", "LOGS", "true"
  48.  
  49.             versionNameSuffix "-debug"
  50.         }
  51.  
  52.         release {
  53.             buildConfigField "boolean", "LOGS", "false"
  54.  
  55.             signingConfig signingConfigs.release
  56.             zipAlignEnabled true
  57.             minifyEnabled false
  58.             shrinkResources false
  59.             proguardFiles getDefaultProguardFile("proguard-android.txt"), "proguard-rules.pro"
  60.         }
  61.     }
  62.  
  63.     compileOptions {
  64.         sourceCompatibility JavaVersion.VERSION_1_7
  65.         targetCompatibility JavaVersion.VERSION_1_7
  66.     }
  67.  
  68.     applicationVariants.all {
  69.         variant ->
  70.             if(variant.buildType.name.equals("release")) {
  71.                 renameArtifact("webviewapp", variant)
  72.             }
  73.     }
  74. }
  75. repositories {
  76.        flatDir {
  77.         dirs 'libs'
  78.     }
  79. }
  80.  
  81.  
  82. dependencies {
  83.     implementation fileTree(dir: "libs", include: ["*.jar"])
  84.     implementation (name:"config", ext:"aar")
  85.     implementation "com.android.support:support-compat:28.0.0"
  86.     implementation "com.android.support:support-core-utils:28.0.0"
  87.     implementation "com.android.support:support-core-ui:28.0.0"
  88.     implementation "com.android.support:support-fragment:28.0.0"
  89.     implementation "com.android.support:appcompat-v7:28.0.0"
  90.     implementation "com.android.support:design:28.0.0"
  91.     implementation "com.google.android.gms:play-services-base:11.4.2"
  92.     implementation "com.google.android.gms:play-services-analytics:11.4.2"
  93.     implementation "com.google.android.gms:play-services-ads:11.4.2"
  94.     implementation "com.google.android.gms:play-services-gcm:11.4.2"
  95.     implementation "com.google.android.gms:play-services-location:11.4.2"
  96.     implementation "com.onesignal:OneSignal:3.6.4@aar"
  97.     implementation "org.alfonz:alfonz-utility:0.8.0"
  98.     implementation "org.alfonz:alfonz-view:0.8.0"
  99.  
  100.     implementation 'com.squareup.picasso:picasso:2.5.2' //for Inmobi
  101.     implementation name: 'adcolony-sdk-3.2.1', ext: 'aar'
  102.     implementation name: 'mmedia-6.4.0', ext: 'aar'
  103.     implementation name: 'mobvista_alphab', ext: 'aar'
  104.     implementation name: 'mobvista_appwall', ext: 'aar'
  105.     implementation name: 'mobvista_appwallext', ext: 'aar'
  106.     implementation name: 'mobvista_common', ext: 'aar'
  107.     implementation name: 'mobvista_interstitial', ext: 'aar'
  108.     implementation name: 'mobvista_mvdownloads', ext: 'aar'
  109.     implementation name: 'mobvista_mvjscommon', ext: 'aar'
  110.     implementation name: 'mobvista_mvnative', ext: 'aar'
  111.     implementation name: 'mobvista_nativeex', ext: 'aar'
  112.     implementation name: 'mobvista_offerwall', ext: 'aar'
  113.     implementation name: 'mobvista_playercommon', ext: 'aar'
  114.     implementation name: 'mobvista_reward', ext: 'aar'
  115.     implementation name: 'mobvista_videocommon', ext: 'aar'
  116.     implementation name: 'mobvista_videofeeds', ext: 'aar'
  117. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement