view app/build.gradle @ 456:b00031b2d6ac

bump version and target api level for google play store
author Carl Byington <carl@five-ten-sg.com>
date Sat, 10 Nov 2018 12:18:05 -0800
parents 7492d2cb7b75
children 105815cce146
line wrap: on
line source

task copyDebugLibTask(type: Copy) {
    from 'build/intermediates/binaries/debug/arm/lib/armeabi'
    into 'src/main/jniLibs/armeabi'
}
task copyReleaseLibTask(type: Copy) {
    from 'build/intermediates/binaries/release/arm/lib/armeabi'
    into 'src/main/jniLibs/armeabi'
}

tasks.whenTaskAdded { task ->
    if (task.name.contains("merge") && task.name.contains("JniLibFolders")) {
        if (task.name.contains("ArmDebug")) {
            task.dependsOn copyDebugLibTask
        }
        if (task.name.contains("ArmRelease")) {
            task.dependsOn copyReleaseLibTask
        }
    }
}


apply plugin: 'com.android.application'

android {
    signingConfigs {
        release {
            print "\nNo Console\n"
            def read = System.in.newReader().&readLine
            print "\nkey store password"
            storePassword = read()
            print "\nkey alias password"
            keyPassword   = read()
            print "\nDone\n"
            storeFile = file("../510Connectbot.keystore")
            storeType = "jks"
            keyAlias  = "510Connectbot"
        }
    }
    compileSdkVersion = 16
    buildTypes {
        release {
            minifyEnabled = false
            signingConfig = signingConfigs.release
            ndk {
                debuggable = false
                abiFilters 'armeabi-v7a'
            }
        }
        debug {
            debuggable = true
            ndk {
                debuggable = true
                abiFilters 'armeabi-v7a'
            }
        }
    }
    flavorDimensions "arch"
    productFlavors {
        arm {
            dimension "arch"
        }
        x86 {
            dimension "arch"
        }
    }
    sourceSets {
        main {
            jni {
                srcDir "Exec"
            }
        }
    }

    defaultConfig {
        applicationId = "com.five_ten_sg.connectbot"
        minSdkVersion = 8
        targetSdkVersion = 26
        ndk {
            moduleName = "com_google_ase_Exec"
        }
    }

    externalNativeBuild {
        ndkBuild {
            path "src/main/jni/Android.mk"
        }
    }

}