comparison app/build.gradle @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents
children 1e3789de6900
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 tasks.whenTaskAdded { task ->
2 if (task.name.contains("lint")) {
3 task.enabled = false
4 }
5 }
6
7 apply plugin: 'com.android.model.application'
8
9 model {
10 def signConf
11
12 android {
13 compileSdkVersion = 16
14 buildToolsVersion = "23.0.2"
15
16 defaultConfig.with {
17 applicationId = "com.five_ten_sg.connectbot"
18 minSdkVersion.apiLevel = 8
19 targetSdkVersion.apiLevel = 15
20 }
21 }
22
23 compileOptions.with {
24 sourceCompatibility = JavaVersion.VERSION_1_7
25 targetCompatibility = JavaVersion.VERSION_1_7
26 }
27
28 android.ndk {
29 moduleName = "com_google_ase_Exec"
30 cppFlags.add("-Werror")
31 ldLibs.add("log")
32 }
33
34 android.sources {
35 main {
36 jni {
37 source {
38 srcDir "Exec"
39 }
40 }
41 }
42 }
43
44 android.signingConfigs {
45 create("signed") {
46 storeFile = file("../510Connectbot.keystore")
47 storePassword = new String(System.console().readPassword("\n\$ Enter keystore password: "))
48 storeType = "jks"
49 keyAlias = "510Connectbot"
50 keyPassword = new String(System.console().readPassword("\n\$ Enter key password: "))
51 signConf = it
52 }
53 }
54
55 android.buildTypes {
56 release {
57 minifyEnabled = false
58 signingConfig = signConf
59 //proguardFiles.add(file('proguard-rules.txt'))
60 }
61 debug {
62 debuggable = true
63 }
64 }
65
66 android.productFlavors {
67 create("arm") {
68 ndk.abiFilters.add("armeabi")
69 }
70 create("x86") {
71 ndk.abiFilters.add("x86")
72 }
73 }
74
75 }