Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
072d5fc3
Commit
072d5fc3
authored
3 months ago
by
Nicolas Pomepuy
Committed by
Duncan McNamara
3 months ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the open subtitles API key from the gradle properties
parent
f93d4e1e
No related branches found
Branches containing commit
Tags
0.5.2
Tags containing commit
1 merge request
!2017
use new OpenSubtitles API
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
application/resources/build.gradle
+6
-0
6 additions, 0 deletions
application/resources/build.gradle
with
6 additions
and
0 deletions
application/resources/build.gradle
+
6
−
0
View file @
072d5fc3
...
...
@@ -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'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment