Skip to content
Snippets Groups Projects
Commit 072d5fc3 authored by Nicolas Pomepuy's avatar Nicolas Pomepuy Committed by Duncan McNamara
Browse files

Add the open subtitles API key from the gradle properties

parent f93d4e1e
No related branches found
Tags 0.5.2
1 merge request!2017use new OpenSubtitles API
......@@ -15,6 +15,7 @@ android {
compileSdk rootProject.ext.compileSdkVersion
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField "String", "APP_ID", "\"${rootProject.ext.appId}\""
buildConfigField 'String', 'VLC_OPEN_SUBTITLES_API_KEY', "\"${getOSApiKey(project)}\""
vectorDrawables.useSupportLibrary = true
}
......@@ -53,6 +54,11 @@ android {
}
}
static def getOSApiKey(project) {
return System.getenv('VLC_OPEN_SUBTITLES_API_KEY') ?: project.properties['vlc_open_subtitles_api_key'] ?: ""
}
dependencies {
api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
api 'androidx.multidex:multidex:2.0.1'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment