This repository has been archived by the owner on Feb 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
70 lines (61 loc) · 1.8 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
}
}
repositories {
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
jcenter()
mavenCentral()
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "im.actor.cloud.free"
minSdkVersion 15
targetSdkVersion 24
if (System.getenv("BUILD_VERSION") != null) {
// Convering 1.8.3(123) -> ["1.8.3", "123"]
def buildVersions = System.getenv("BUILD_VERSION").split("\\(")
buildVersions[1] = buildVersions[1].substring(0, buildVersions[1].length() - 1)
versionName buildVersions[0]
versionCode buildVersions[1].toInteger()
setProperty("archivesBaseName", "Actor-Open-$versionName-$versionCode")
} else {
versionName "1.0.0"
versionCode 1000000
}
}
if (project.hasProperty("ACTOR_KEYSTORE")) {
signingConfigs {
release {
storeFile file(ACTOR_KEYSTORE)
storePassword ACTOR_KEYSTORE_PASS
keyAlias ACTOR_KEYSTORE_ALIAS
keyPassword ACTOR_KEYSTORE_ALIAS_PASS
}
}
}
buildTypes {
release {
if (project.hasProperty("ACTOR_KEYSTORE")) {
signingConfig signingConfigs.release
}
}
}
lintOptions {
abortOnError false
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.0.0'
compile 'im.actor:android-sdk:3.0.451'
}