Advertisement
ProgrameruPokusaju

Gradle file

Jul 12th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.91 KB | None | 0 0
  1. apply plugin: 'com.android.application'
  2.  
  3. ext.APP_VERSION = "129";
  4.  
  5. tasks.whenTaskAdded { task ->
  6.     if (task.name == 'assembleRelease') {
  7.         task.dependsOn('connectedAndroidTest')
  8.         task.dependsOn('testReleaseUnitTest')
  9.     }
  10. }
  11.  
  12. android {
  13.     compileSdkVersion 25
  14.     buildToolsVersion '26.0.0'
  15.     useLibrary 'org.apache.http.legacy'
  16.  
  17.     defaultConfig {
  18.         applicationId "d_logic.ticketsale"
  19.         minSdkVersion 15
  20.         targetSdkVersion 21
  21.         testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
  22.     }
  23.  
  24.     lintOptions {
  25.         abortOnError false
  26.     }
  27.  
  28.     signingConfigs {
  29.         release {
  30.             keyAlias 'dlogic_ticketsale'
  31.             keyPassword 'dlogic-sigurno'
  32.             storeFile file('/../android_keystore/ticketsalekeystore')
  33.             storePassword 'dlogic-sigurno'
  34.         }
  35.  
  36.         debug {
  37.             keyAlias 'dlogic_ticketsale'
  38.             keyPassword 'dlogic-sigurno'
  39.             storeFile file(getRootDir().absolutePath + '/android_keystore/ticketsalekeystore')
  40.             storePassword 'dlogic-sigurno'
  41.         }
  42.     }
  43.  
  44.     buildTypes {
  45.  
  46.         release {
  47.             signingConfig signingConfigs.release
  48.             minifyEnabled false
  49.             proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
  50.             applicationVariants.all { variant ->
  51.                 variant.outputs.each { output ->
  52.                     if (variant.buildType.name == "release") {
  53.                         output.outputFile = new File(getRootDir().absolutePath + "/apk/release/", output.outputFile.name.replace("app-release.apk", "BusLogicTicketSale_0" + APP_VERSION + ".apk"))
  54.                     } else {
  55.                         output.outputFile = new File(getRootDir().absolutePath + "/apk/debug/", output.outputFile.name.replace("app-debug.apk", "BusLogicTicketSale_test_0" + APP_VERSION + ".apk"))
  56.                     }
  57.                 }
  58.             }
  59.             buildConfigField("int", "VERSION", APP_VERSION)
  60.             buildConfigField("boolean", "CIS_DEBUG", "false")
  61.             buildConfigField("String", "CIS_FISCAL_WEB_SERVICE_URL", "\"https://cis.porezna-uprava.hr:8449/FiskalizacijaService\"")
  62.             buildConfigField("String", "CIS_ALIAS", "\"fiskal 2\"")
  63.             buildConfigField("String", "CIS_PASSWORD", "\"Ma9891\"")
  64.             buildConfigField("String", "TEST", "\"\"")
  65.  
  66.         }
  67.  
  68.         debug {
  69.             buildConfigField("int", "VERSION", APP_VERSION)
  70.             buildConfigField("boolean", "CIS_DEBUG", "true")
  71.             buildConfigField("String", "CIS_FISCAL_WEB_SERVICE_URL", "\"https://cistest.apis-it.hr:8449/FiskalizacijaServiceTest\"")
  72.             buildConfigField("String", "CIS_ALIAS", "\"fiskal 3\"")
  73.             buildConfigField("String", "CIS_PASSWORD", "\"5547Mako\"")
  74.             buildConfigField("String", "TEST", "\"TEST\"")
  75.         }
  76.     }
  77.  
  78.     testOptions {
  79.         unitTests.returnDefaultValues = true
  80.     }
  81.  
  82.     packagingOptions {
  83.         exclude 'META-INF/DEPENDENCIES'
  84.         exclude 'META-INF/NOTICE'
  85.         exclude 'META-INF/LICENSE'
  86.         exclude 'META-INF/LICENSE.txt'
  87.         exclude 'META-INF/NOTICE.txt'
  88.     }
  89.  
  90. }
  91. configurations.all {
  92.     resolutionStrategy {
  93.         force 'com.android.support:support-annotations:23.1.1'
  94.     }
  95. }
  96. dependencies {
  97.     compile 'com.android.support:design:25.0.0'
  98.     compile 'com.android.support:appcompat-v7:25.0.0'
  99.     compile 'com.android.support:cardview-v7:25.0.0'
  100.     compile 'com.android.support:recyclerview-v7:25.0.0'
  101.     compile 'com.android.support:support-v4:25.0.0'
  102.     compile 'com.google.code.gson:gson:2.2.4'
  103.     compile 'com.google.guava:guava:20.0'
  104.     compile files('libs/ksoap2-3.6.0.jar')
  105.     compile files('libs/java-json.jar')
  106.     compile files('libs/bytesutil.jar')
  107.     compile files('libs/com.datecs.api.jar')
  108.     compile files('libs/commons-codec-1.7.jar')
  109.     compile files('libs/commons-validator-1.4.1.jar')
  110.     compile files('libs/d2xx.jar')
  111.     compile files('libs/sqlcipher-javadoc.jar')
  112.     compile files('libs/sqlcipher.jar')
  113.     compile files('libs/zbar.jar')
  114.     compile files('libs/ZSDK_ANDROID_API.jar')
  115.     //compile files('libs/zxing_core_2_1.jar')
  116.     compile files('libs/java-json.jar')
  117.     compile files('libs/woodstox-core-asl-4.4.1.jar')
  118.     //compile files('libs/zxing_core_2_1.jar')
  119.     compile files('libs/bcprov-ext-jdk16-1.46.jar')
  120.     compile files('libs/xmlsec-2.0.4.jar')
  121.     compile files('libs/slf4j-api-1.7.9.jar')
  122.     compile files('libs/sunmiprinter_v1.8.3.jar')
  123.     compile files('libs/zxing_3.2.0.jar')
  124.     testCompile 'junit:junit:4.12'
  125.     testCompile 'org.mockito:mockito-core:1.+'
  126.     testCompile "org.robolectric:robolectric:3.2.2"
  127.     androidTestCompile 'com.android.support:support-annotations:19.0.0'
  128.     androidTestCompile 'com.android.support.test:runner:0.5'
  129.     androidTestCompile 'com.android.support.test:rules:0.5'
  130. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement