-
Notifications
You must be signed in to change notification settings - Fork 148
/
build.gradle
37 lines (32 loc) · 1.21 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
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion COMPILE_SDK_VERSION as int
buildToolsVersion BUILD_TOOLS_VERSION
defaultConfig {
applicationId "com.takusemba.rtmppublishersample"
minSdkVersion MIN_SDK_VERSION as int
targetSdkVersion TARGET_SDK_VERSION as int
versionCode LIBRARY_VERSION_CODE as int
versionName LIBRARY_VERSION_NAME
buildConfigField "String", "STREAMING_URL", "\"" + getStreamingUrl() + "\""
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation "com.android.support:appcompat-v7:$APP_COMPAT_VERSION"
implementation "com.android.support:design:$APP_COMPAT_VERSION"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation project(':rtmppublisher')
}
def getStreamingUrl() {
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
return properties.getProperty("streaming_url")
}