Skip to content

Commit

Permalink
android: require MinSdkVersion (#46)
Browse files Browse the repository at this point in the history
* android: require MinSdkVersion

* fix: minSdkVersion
  • Loading branch information
okhiroyuki authored Oct 28, 2023
1 parent 7c9b462 commit 02677d0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
ext.cdvMinSdkVersion = 24

buildscript {
repositories {
jcenter()
}
}

def _nodeMinSdkVersion = ((rootProject?.ext?.properties?.minSdkVersion) ?: 24)
def _compileNativeModulesSdkVersion = _nodeMinSdkVersion;
if (_compileNativeModulesSdkVersion<24) {
// 24 is the minimum sdk version Node is built with.
_compileNativeModulesSdkVersion=24;
}

android {
defaultConfig {
minSdkVersion _nodeMinSdkVersion
externalNativeBuild {
cmake {
cppFlags ""
Expand Down

0 comments on commit 02677d0

Please sign in to comment.