This repository was archived by the owner on Sep 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
107 lines (92 loc) · 3.31 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
ext{
debug_versioncode = 6
debug_versionname = "beta-0.1.6"
debug_minifyEnabled = false
release_versioncode = 1
release_versionname = "release-1.0.0"
// buildType = "release"
buildType = "debug"
}
def getBuildType() {
return ext.buildType
}
def releaseTime() {
return new Date().format("yyyyMMdd_HHmmss", TimeZone.getTimeZone("GMT+08:00"))
}
def getMyVersionCode() {
return "debug".equals(ext.buildType) ? ext.debug_versioncode : ext.release_versioncode
}
def getMyVersionName() {
return "debug".equals(ext.buildType) ? ext.debug_versionname : ext.release_versionname
}
def getDebugMinifyEnabled() {
return ext.debug_minifyEnabled
}
android {
compileSdkVersion 30
buildToolsVersion "30.0.0"
defaultConfig {
applicationId "net.zentring.live"
minSdkVersion 29
targetSdkVersion 30
versionCode getMyVersionCode()
versionName getMyVersionName()
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
android.applicationVariants.all { variant ->
variant.outputs.all { output ->
def fileName = ""
if (outputFile != null && outputFile.name.endsWith('.apk')) {
if (variant.buildType.name.equals('release')) {
fileName = "live_${defaultConfig.versionName}_${releaseTime()}.apk"
} else if (variant.buildType.name.equals('debug')) {
fileName = "live_${defaultConfig.versionName}_${releaseTime()}.apk"
}
output.outputFileName = fileName
}
}
}
}
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.core:core-ktx:1.3.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation project(':videotrimmer')
implementation 'com.github.MasayukiSuda:Mp4Composer-android:v0.4.0'
implementation 'com.github.pedroSG94.rtmp-rtsp-stream-client-java:rtplibrary:1.8.4'
implementation 'com.android.volley:volley:1.1.1'
implementation 'com.github.yangjie10930:EpMedia:v0.9.5'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
//瀑布标签
implementation 'com.github.VolleyCN.Android-FlowLayout:library:1.0.2'
implementation 'com.google.code.gson:gson:2.8.6'
//等待框动画用
implementation 'com.nineoldandroids:library:2.4.0'
implementation 'org.xutils:xutils:3.5.1'
}