forked from OpenSageTV/sagetv-miniclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
77 lines (66 loc) · 2.37 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
buildscript {
repositories {
google()
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'org.robovm:robovm-gradle-plugin:1.6.0'
}
}
def getVersionFile(project) {
def ver = new File('core/src/main/java/sagex/miniclient/Version.java');
if (!ver.exists()) {
ver = new File('../core/src/main/java/sagex/miniclient/Version.java');
}
if (!ver.exists()) {
ver = new File('src/main/java/sagex/miniclient/Version.java');
}
if (!ver.exists()) {
ver = new File(project.rootDir, 'core/src/main/java/sagex/miniclient/Version.java');
}
if (!ver.exists()) {
throw new RuntimeException("Can't find VERSION from " + new File(".").getAbsolutePath() + " with project " + project.rootDir);
}
return ver;
}
allprojects {
version = '1.0'
ext {
appName = "SageTVMiniclient"
versionText = getVersionFile(project).text
baseVersion = (versionText =~ /VERSION = "([^"]+)"/)[0][1]
//System.out.println("Version: " + baseVersion)
gdxVersion = "1.9.8"
// NOTE: we can't use gradle builds for ijk because it uses a limited profile
ijkVersionDev = "0.8.8-SNAPSHOT";
ijkVersion = "0.7.5"; // NOT USED
// NOTE: using exoplayer from mavenlocal (prebuilt) for ffmpeg
exoVersionCustomExt = '2.12.1'
// NOTE: using regular exoplayer for core stuff
exoVersion = '2.14.0'
androidExtrasVer = "28.0.0"
androidBuildToolsVersion = "28.0.3"
androidMinSdkVersion = 21
androidCompileSdkVersion = 29
androidTargetSdkVersion = 29
appVersionCode = 2101074
appVersionName = "${baseVersion}"
// tell every project where to find the local project maven files
mavenInProject = file('../mavenlocal').absoluteFile.toURI()
defJavaVesionNum = 1.7
defJavaVesionConst = JavaVersion.VERSION_1_7
}
repositories {
maven { url mavenInProject }
mavenLocal()
jcenter()
google()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
}