forked from OpenSageTV/sagetv-miniclient
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
78 lines (67 loc) · 2.47 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
buildscript {
repositories {
google()
mavenLocal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
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 grable builds for ijk because it uses a limited profile
ijkVersionDev = "0.8.8-SNAPSHOT";
ijkVersion = "0.7.5"; // NOT USED
// NOTE: Exo is build from the stuckless/ExoPlayer repo (not true)
exoVersionStuckless = '2.8.1-SNAPSHOT';
// NOTE: using regular exoplayer now
exoVersion = '2.8.1-SNAPSHOT';
// androidExtrasVer = "23.0.0";
// androidBuildToolsVersion = "25.0.1";
androidExtrasVer = "27.0.0";
androidBuildToolsVersion = "27.0.0";
androidMinSdkVersion = 21;
androidCompileSdkVersion = 27;
androidTargetSdkVersion = 27;
// versionCode API (2 digits), SCREEN (2 digits), VERSION (3 digits)
appVersionCode = 2101029 // v1.2.12
appVersionName = "${baseVersion}"
// tell every project where to find the local project maven files
mavenInProject = file('../mavenlocal').absoluteFile.toURI()
}
repositories {
maven { url mavenInProject }
mavenLocal()
google()
mavenCentral()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://oss.sonatype.org/content/repositories/releases/" }
}
}