Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'com.android.application'
- ext.APP_VERSION = "129";
- tasks.whenTaskAdded { task ->
- if (task.name == 'assembleRelease') {
- task.dependsOn('connectedAndroidTest')
- task.dependsOn('testReleaseUnitTest')
- }
- }
- android {
- compileSdkVersion 25
- buildToolsVersion '26.0.0'
- useLibrary 'org.apache.http.legacy'
- defaultConfig {
- applicationId "d_logic.ticketsale"
- minSdkVersion 15
- targetSdkVersion 21
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- lintOptions {
- abortOnError false
- }
- signingConfigs {
- release {
- keyAlias 'dlogic_ticketsale'
- keyPassword 'dlogic-sigurno'
- storeFile file('/../android_keystore/ticketsalekeystore')
- storePassword 'dlogic-sigurno'
- }
- debug {
- keyAlias 'dlogic_ticketsale'
- keyPassword 'dlogic-sigurno'
- storeFile file(getRootDir().absolutePath + '/android_keystore/ticketsalekeystore')
- storePassword 'dlogic-sigurno'
- }
- }
- buildTypes {
- release {
- signingConfig signingConfigs.release
- minifyEnabled false
- proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
- applicationVariants.all { variant ->
- variant.outputs.each { output ->
- if (variant.buildType.name == "release") {
- output.outputFile = new File(getRootDir().absolutePath + "/apk/release/", output.outputFile.name.replace("app-release.apk", "BusLogicTicketSale_0" + APP_VERSION + ".apk"))
- } else {
- output.outputFile = new File(getRootDir().absolutePath + "/apk/debug/", output.outputFile.name.replace("app-debug.apk", "BusLogicTicketSale_test_0" + APP_VERSION + ".apk"))
- }
- }
- }
- buildConfigField("int", "VERSION", APP_VERSION)
- buildConfigField("boolean", "CIS_DEBUG", "false")
- buildConfigField("String", "CIS_FISCAL_WEB_SERVICE_URL", "\"https://cis.porezna-uprava.hr:8449/FiskalizacijaService\"")
- buildConfigField("String", "CIS_ALIAS", "\"fiskal 2\"")
- buildConfigField("String", "CIS_PASSWORD", "\"Ma9891\"")
- buildConfigField("String", "TEST", "\"\"")
- }
- debug {
- buildConfigField("int", "VERSION", APP_VERSION)
- buildConfigField("boolean", "CIS_DEBUG", "true")
- buildConfigField("String", "CIS_FISCAL_WEB_SERVICE_URL", "\"https://cistest.apis-it.hr:8449/FiskalizacijaServiceTest\"")
- buildConfigField("String", "CIS_ALIAS", "\"fiskal 3\"")
- buildConfigField("String", "CIS_PASSWORD", "\"5547Mako\"")
- buildConfigField("String", "TEST", "\"TEST\"")
- }
- }
- testOptions {
- unitTests.returnDefaultValues = true
- }
- packagingOptions {
- exclude 'META-INF/DEPENDENCIES'
- exclude 'META-INF/NOTICE'
- exclude 'META-INF/LICENSE'
- exclude 'META-INF/LICENSE.txt'
- exclude 'META-INF/NOTICE.txt'
- }
- }
- configurations.all {
- resolutionStrategy {
- force 'com.android.support:support-annotations:23.1.1'
- }
- }
- dependencies {
- compile 'com.android.support:design:25.0.0'
- compile 'com.android.support:appcompat-v7:25.0.0'
- compile 'com.android.support:cardview-v7:25.0.0'
- compile 'com.android.support:recyclerview-v7:25.0.0'
- compile 'com.android.support:support-v4:25.0.0'
- compile 'com.google.code.gson:gson:2.2.4'
- compile 'com.google.guava:guava:20.0'
- compile files('libs/ksoap2-3.6.0.jar')
- compile files('libs/java-json.jar')
- compile files('libs/bytesutil.jar')
- compile files('libs/com.datecs.api.jar')
- compile files('libs/commons-codec-1.7.jar')
- compile files('libs/commons-validator-1.4.1.jar')
- compile files('libs/d2xx.jar')
- compile files('libs/sqlcipher-javadoc.jar')
- compile files('libs/sqlcipher.jar')
- compile files('libs/zbar.jar')
- compile files('libs/ZSDK_ANDROID_API.jar')
- //compile files('libs/zxing_core_2_1.jar')
- compile files('libs/java-json.jar')
- compile files('libs/woodstox-core-asl-4.4.1.jar')
- //compile files('libs/zxing_core_2_1.jar')
- compile files('libs/bcprov-ext-jdk16-1.46.jar')
- compile files('libs/xmlsec-2.0.4.jar')
- compile files('libs/slf4j-api-1.7.9.jar')
- compile files('libs/sunmiprinter_v1.8.3.jar')
- compile files('libs/zxing_3.2.0.jar')
- testCompile 'junit:junit:4.12'
- testCompile 'org.mockito:mockito-core:1.+'
- testCompile "org.robolectric:robolectric:3.2.2"
- androidTestCompile 'com.android.support:support-annotations:19.0.0'
- androidTestCompile 'com.android.support.test:runner:0.5'
- androidTestCompile 'com.android.support.test:rules:0.5'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement