Skip to content

Commit

Permalink
fix(android): move default properties to gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
YangJonghun committed Nov 8, 2023
1 parent f49cf30 commit 53ade18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def supportsNamespace() {
return major >= 8
}

def useExoplayerIMA = getExtOrDefault("RNVUseExoplayerIMA", false)
def useExoplayerIMA = safeExtGet("RNVUseExoplayerIMA")?.toBoolean() ?: false

println "useExoplayerIMA:" + useExoplayerIMA

Expand Down Expand Up @@ -141,7 +141,7 @@ repositories {
mavenCentral()
}

def media3_version = '1.1.1'
def media3_version = safeExtGet('media3Version')
def kotlin_version = safeExtGet('kotlinVersion')

dependencies {
Expand Down
4 changes: 3 additions & 1 deletion android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ RNVideo_minSdkVersion=21
RNVideo_targetSdkVersion=31
RNVideo_compileSdkVersion=31
RNVideo_ndkversion=21.4.7075529
RNVideo_buildToolsVersion=30.0.2
RNVideo_buildToolsVersion=30.0.2
RNVideo_media3Version=1.1.1
RNVideo_RNVUseExoplayerIMA=false

0 comments on commit 53ade18

Please sign in to comment.