-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig_repo.gradle
94 lines (81 loc) · 3.15 KB
/
config_repo.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
ext {
MAVEN_REPOSITORIES = {
google()
mavenCentral()
mavenLocal()
maven {
url 'http://ct.y.qq.com/TVapp/nexus/repository/maven-public/'
credentials {
username 'tvsdk_client'
password 'tvsdk-client'
}
allowInsecureProtocol true
}
def localPropertiesFile = file("local.properties")
def useSdkSource = false
if (localPropertiesFile.exists()) {
def localProperties = new Properties()
localProperties.load(new FileInputStream(localPropertiesFile))
useSdkSource = localProperties.getProperty("useSdkSource", "false").toBoolean()
}
if (useSdkSource) {
maven { url 'https://mirrors.tencent.com/nexus/repository/maven-public/' }
maven { url "https://mirrors.tencent.com/repository/maven/QQMusicSnapshots" }
maven { url "https://mirrors.tencent.com/repository/maven/QQMusicRelease" }
}
}
kotlin_version = "1.6.10"
compose_version = '1.1.1'
kotlin_coroutine_android_version = '1.5.1'
enable_minify = false
sdk_version = project.hasProperty('edge_version') && "${edge_version}" != ""
? "${edge_version}"
: "3.0.0"
println "apk demo sdk_version:$sdk_version"
appVersionCode = 2
appVersionName = sdk_version
minSdkVersion = 21
targetSdkVersion = 30
compileSdkVersion = 32
androidx_core_version = "1.1.0"
androidx_compat_version = "1.0.0"
androidx_anno_version = "1.1.0"
androidx_media_version = "1.0.0"
google_material_version = "1.0.0"
common_util_version = "1.2.13-edge"
mmkv_version = "1.2.16"
sdkmethodmonitor = "0.0.1"
useDebugrootProject = {
def localPropertiesFile = file("local.properties")
if (localPropertiesFile.exists()) {
def localProperties = new Properties()
localProperties.load(new FileInputStream(localPropertiesFile))
return localProperties.getProperty("useDebugInfoSource", "false").toBoolean()
}
return false
}
gson_version = "2.8.8"
isDebugBuild = {
org.gradle.api.invocation.Gradle gradle = getGradle()
if (gradle != null) {
List<org.gradle.TaskExecutionRequest> taskRequests = gradle.getStartParameter().getTaskRequests()
println "+++++++++++++++ taskRequests = " + taskRequests
if (taskRequests != null) {
for (int i = 0; i < taskRequests.size(); i++) {
org.gradle.TaskExecutionRequest taskRequest = taskRequests.get(i)
List<String> taskArgs = taskRequest.args
if (taskArgs != null) {
for (int j = 0; j < taskArgs.size(); j++) {
String taskArg = taskArgs.get(j)
println "+++++++++++++++ taskArg = " + taskArg
if (taskArg.matches(".*Debug")) {
return true
}
}
}
}
}
}
return false
}
}