Skip to content

Commit

Permalink
define AndroidPlatform
Browse files Browse the repository at this point in the history
  • Loading branch information
jperedadnr committed Mar 30, 2024
1 parent 056a448 commit 54c968d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gradle/native-build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ def sdkPath(String platform) {
return "/Applications/Xcode.app/Contents/Developer/Platforms/${platform}.platform/Developer/SDKs/${platform}${IOS_VERSION}.sdk";
}

def AndroidPlatform = 33

configurations {
util
}
Expand Down Expand Up @@ -123,7 +125,7 @@ ext.aarBuild = { buildDir, projectDir, name, os ->
if (sdk == null) {
throw new GradleException("Error: ANDROID_SDK can't be null")
}
def androidJar = sdk + "/platforms/android-33/android.jar"
def androidJar = sdk + "/platforms/android-${AndroidPlatform}/android.jar"
if (!file(androidJar).exists()) {
throw new GradleException("Error: path for ${androidJar} doesn't exist")
}
Expand Down

0 comments on commit 54c968d

Please sign in to comment.