forked from kitsunyan/foxy-droid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
146 lines (127 loc) · 3.9 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
buildscript {
ext.versions = [
android: '4.1.1',
kotlin: '1.4.32'
]
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:' + versions.android
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:' + versions.kotlin
}
}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
compileSdkVersion 29
buildToolsVersion '29.0.3'
defaultConfig {
// archive name, application ID, minSdk, targetSdk, and version information have been modified
// by REV Robotics.
archivesBaseName = 'SoftwareManager'
applicationId 'com.revrobotics.softwaremanager'
minSdkVersion 29
//noinspection OldTargetApi
targetSdkVersion 29
versionCode 2
versionName '1.0.1'
def languages = [ 'en' ]
buildConfigField 'String[]', 'LANGUAGES', '{ "' + languages.join('", "') + '" }'
resConfigs languages
}
sourceSets.all {
def javaDir = it.java.srcDirs.find { it.name == 'java' }
it.java.srcDirs += new File(javaDir.parentFile, 'kotlin')
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = compileOptions.sourceCompatibility.toString()
}
buildTypes {
debug {
minifyEnabled false
shrinkResources false
}
release {
minifyEnabled true
shrinkResources false
}
all {
crunchPngs false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard.pro'
}
}
lintOptions {
warning 'InvalidPackage'
ignore 'InvalidVectorPath'
}
packagingOptions {
exclude '/DebugProbesKt.bin'
exclude '/kotlin/**.kotlin_builtins'
exclude '/kotlin/**.kotlin_metadata'
exclude '/META-INF/**.kotlin_module'
exclude '/META-INF/**.pro'
exclude '/META-INF/**.version'
exclude '/okhttp3/internal/publicsuffix/*'
}
def keystorePropertiesFile = rootProject.file('keystore.properties')
if (keystorePropertiesFile.exists()) {
def keystoreProperties = new Properties()
keystoreProperties.load(keystorePropertiesFile.newDataInputStream())
def signing = [
// Modified by REV Robotics on 2021-05-05 to use Google-recommended property names
storeFile: keystoreProperties['storeFile'],
storePassword: keystoreProperties['storePassword'],
keyAlias: keystoreProperties['keyAlias'],
keyPassword: keystoreProperties['keyPassword']
]
if (!signing.any { _, v -> v == null }) {
signingConfigs {
primary {
storeFile file(signing.storeFile)
storePassword signing.storePassword
keyAlias signing.keyAlias
keyPassword signing.keyPassword
// v2SigningEnabled set to true by REV Robotics on 2021-05-05
v2SigningEnabled true
}
}
buildTypes {
debug.signingConfig signingConfigs.primary
release.signingConfig signingConfigs.primary
}
}
}
// Flavor configuration added by REV Robotics on 2021-06-06
flavorDimensions "tabs"
productFlavors {
create("allTabsCanBeEnabled") {
dimension = "tabs"
buildConfigField('boolean', 'ALL_TABS_CAN_BE_ENABLED', 'true')
}
create("onlyUpdatesTab") {
dimension = "tabs"
buildConfigField('boolean', 'ALL_TABS_CAN_BE_ENABLED', 'false')
}
}
}
repositories {
google()
jcenter()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:' + versions.kotlin
implementation 'androidx.fragment:fragment:1.2.5'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
implementation 'androidx.vectordrawable:vectordrawable:1.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.7.2'
implementation 'io.reactivex.rxjava3:rxjava:3.0.4'
implementation 'io.reactivex.rxjava3:rxandroid:3.0.0'
implementation 'com.fasterxml.jackson.core:jackson-core:2.11.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}