-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathbuild.gradle
97 lines (95 loc) · 2.67 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
// WebCall Copyright 2023 timur.mobi. All rights reserved.
apply plugin: 'com.android.application'
android {
compileSdkVersion 31
defaultConfig {
applicationId "timur.webcall.callee"
minSdkVersion 21
targetSdkVersion 31
versionCode 122
versionName "1.3.2"
}
signingConfigs {
release {
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
storeFile file("releasekey.keystore")
storePassword keystoreProperties['RELEASE_STORE_PASSWORD']
keyAlias keystoreProperties['RELEASE_KEY_ALIAS']
keyPassword keystoreProperties['RELEASE_KEY_PASSWORD']
//v1SigningEnabled true
//v2SigningEnabled true
}
debug {
def keystorePropertiesFile = rootProject.file("keystore.properties");
def keystoreProperties = new Properties()
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
storeFile file("releasekey.keystore")
storePassword keystoreProperties['RELEASE_STORE_PASSWORD']
keyAlias keystoreProperties['RELEASE_KEY_ALIAS']
keyPassword keystoreProperties['RELEASE_KEY_PASSWORD']
//minifyEnabled false
}
}
buildTypes {
release {
minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.release
}
debug {
minifyEnabled false
//proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.debug
dependencies {
//Add the debugImplementation as LeakCanary framework is supposed to only run in debug
debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.10'
}
}
applicationVariants.all { variant ->
variant.outputs.all {
def versionName = variant.versionName
outputFileName = "WebCall-${versionName}.apk"
}
}
}
compileOptions {
sourceCompatibility 1.8
targetCompatibility 1.8
}
lintOptions {
abortOnError false
disable 'ObsoleteLintCustomCheck'
}
}
buildscript {
repositories {
mavenCentral()
maven {
url 'https://maven.google.com'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.4'
}
}
repositories {
mavenCentral()
maven {
url 'https://maven.google.com'
}
}
dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'org.java-websocket:Java-WebSocket:1.5.2'
}
tasks.withType(JavaCompile) {
//options.compilerArgs << '-Xlint:unchecked'
//options.deprecation = true
}
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}