123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- buildscript {
- ext.kotlin_version = '1.1.60'
- repositories {
- jcenter()
- maven { url 'https://maven.fabric.io/public' }
- google()
- }
- dependencies {
- classpath 'com.android.tools.build:gradle:3.1.0-alpha04'
- //noinspection GradleDynamicVersion
- classpath 'io.fabric.tools:gradle:1.+'
- //noinspection DifferentKotlinGradleVersion
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
- }
- }
- allprojects {
- repositories {
- jcenter()
- }
- }
- repositories {
- mavenLocal()
- mavenCentral()
- maven { url 'https://maven.fabric.io/public' }
- maven { url 'https://jitpack.io' }
- google()
- }
- apply plugin: 'com.android.application'
- apply plugin: 'kotlin-android'
- apply plugin: 'io.fabric'
- apply plugin: 'org.jetbrains.kotlin.android.extensions'
- apply plugin: 'kotlin-kapt'
- androidExtensions {
- experimental = true
- }
- dependencies {
- implementation('oauth.signpost:signpost-commonshttp4:1.2.1.2') {
- exclude group: 'org.apache.httpcomponents'
- }
- implementation('com.crashlytics.sdk.android:crashlytics:2.6.8@aar') {
- transitive = true;
- }
- implementation 'commons-io:commons-io:2.5'
- implementation 'com.squareup:otto:1.3.4'
- implementation 'com.google.zxing:android-integration:2.3.0'
- implementation 'com.github.blocoio:faker:1.0.1'
- implementation 'com.android.support:support-annotations:27.0.1'
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
- implementation 'com.android.support:support-v4:27.0.1'
- implementation 'com.android.support:design:27.0.1'
- implementation 'com.android.support:appcompat-v7:27.0.1'
- implementation 'com.android.support:recyclerview-v7:27.0.1'
- implementation 'com.android.support:cardview-v7:27.0.1'
- implementation 'com.android.support.constraint:constraint-layout:1.0.2'
- kapt 'com.android.databinding:compiler:3.1.0-alpha04'
- testImplementation 'junit:junit:4.12'
- // Required for instrumented tests
- androidTestImplementation 'com.android.support:support-annotations:27.0.1'
- androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
- androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.1'
- androidTestImplementation 'com.android.support.test:runner:1.0.1'
- androidTestUtil 'com.android.support.test:orchestrator:1.0.1'
- }
- def keystorePropertiesFile = rootProject.file("keystore.properties")
- def keystoreProperties = new Properties()
- keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
- def testPropertiesFile = rootProject.file("test.properties")
- def testProperties = new Properties()
- testProperties.load(new FileInputStream(testPropertiesFile))
- android {
- compileSdkVersion 27
- buildToolsVersion "27.0.1"
- useLibrary 'org.apache.http.legacy'
- dataBinding {
- enabled = true
- }
- defaultConfig {
- versionCode 1451
- versionName "1.4.5.1"
- minSdkVersion 14
- targetSdkVersion 27
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
- }
- testOptions {
- execution 'ANDROID_TEST_ORCHESTRATOR'
- }
- flavorDimensions "store"
- productFlavors {
- amazon {
- dimension "store"
- }
- google {
- dimension "store"
- }
- }
- signingConfigs {
- release {
- keyAlias keystoreProperties.getProperty('keyAlias', '')
- keyPassword keystoreProperties.getProperty('keyPassword', '')
- storeFile file(keystoreProperties.getProperty('storeFile', 'dummy'))
- storePassword keystoreProperties.getProperty('storePassword', '')
- }
- }
- buildTypes {
- release {
- zipAlignEnabled true
- signingConfig signingConfigs.release
- minifyEnabled true
- }
- debug {
- buildConfigField("String", "TEST_USER_ID", "\"${testProperties.testUserId}\"")
- buildConfigField("String", "TEST_USER_KEY_READONLY", "\"${testProperties.testUserKeyReadonly}\"")
- }
- }
- lintOptions {
- abortOnError false
- }
- packagingOptions {
- exclude 'META-INF/LICENSE.txt'
- }
- }
- task wrapper(type: Wrapper) {
- gradleVersion = '4.2.1'
- }
- apply plugin: 'kotlin-android-extensions'
|