forked from HaarigerHarald/raspicast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
80 lines (69 loc) · 2.25 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
buildscript {
repositories {
// Gradle 4.1 and higher include support for Google's Maven repo using
// the google() method. And you need to include this repo to download
// Android plugin 3.0.0 or higher.
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
}
}
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
if (System.console() != null) {
signingConfigs {
release {
storeFile file(System.console().readLine("\nKeystore filepath: "))
storePassword System.console().readLine("\nKeystore password: ")
keyAlias System.console().readLine("\nKey alias: ")
keyPassword System.console().readLine("\nKey password: ")
}
}
}
defaultConfig {
applicationId "at.huber.raspicast"
minSdkVersion 14
targetSdkVersion 29
versionCode 68
versionName "1.4.15"
}
applicationVariants.all { variant ->
if (file("encKey").exists()) {
variant.buildConfigField "String", "KEY_FOR_ENCRYPTION", "\"" + file("encKey").text.split("[\n ]")[0] + "\""
} else {
variant.buildConfigField "String", "KEY_FOR_ENCRYPTION", "\"0000000000000000\""
}
}
buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard.cfg'
if (System.console() != null) {
signingConfig signingConfigs.release
}
}
}
sourceSets.main.java.srcDirs += ['libs/ganymed-ssh2/src/main/java']
}
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
google()
}
configurations.all {
// Check for updates every build
resolutionStrategy.cacheChangingModulesFor 0, 'seconds'
}
dependencies {
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation('com.github.HaarigerHarald:android-youtubeExtractor:master-SNAPSHOT') {
exclude module: 'appcompat-v7'
changing = true
}
implementation 'org.nanohttpd:nanohttpd:2.3.1'
implementation 'com.getbase:floatingactionbutton:1.10.1'
implementation 'com.jpardogo.materialtabstrip:library:1.1.1'
}