diff --git a/android/build.gradle b/android/build.gradle index e762cf0..be03cd9 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -23,7 +23,7 @@ buildscript { compose_ui_version = '1.7.4' camerax_version = "1.3.4" - ndkVersion = "26.1.10909125" + ndkVersion = "27.3.13750724" } repositories { @@ -67,6 +67,31 @@ allprojects { google() maven { url 'https://jitpack.io' } } + + // Build all modules with Android 16KB pages enabled + plugins.withId('com.android.application') { + android { + defaultConfig { + externalNativeBuild { + cmake { + arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" + } + } + } + } + } + + plugins.withId('com.android.library') { + android { + defaultConfig { + externalNativeBuild { + cmake { + arguments "-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON" + } + } + } + } + } } apply plugin: "com.facebook.react.rootproject" diff --git a/package-lock.json b/package-lock.json index db7a9f9..3894766 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "license": "Apache-2.0", "dependencies": { "@gorhom/bottom-sheet": "^5.1.1", - "@mendix/native": "9.0.7", + "@mendix/native": "9.1.0", "@op-engineering/op-sqlite": "9.2.7", "@react-native-async-storage/async-storage": "2.0.0", "@react-native-camera-roll/camera-roll": "7.4.0", @@ -2059,9 +2059,9 @@ } }, "node_modules/@mendix/native": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.0.7.tgz", - "integrity": "sha512-Hgd7LSYmtAhpCvCLkY+JuXHts4eR94EHbG5S6W6hIg35y+iQegs2MgCqMpgBlNYTgtfuHxaaNnCaGOeAq5P4ew==" + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.1.0.tgz", + "integrity": "sha512-fwUR2LWRxUPko9XOxwwz5B5HeEMdf4GZlG0H1LbIa0GmOv90rQsnW5pc1yFgTWerUEOwsvZlSWWmsWDlgfTbUQ==" }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", @@ -11004,9 +11004,9 @@ } }, "@mendix/native": { - "version": "9.0.7", - "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.0.7.tgz", - "integrity": "sha512-Hgd7LSYmtAhpCvCLkY+JuXHts4eR94EHbG5S6W6hIg35y+iQegs2MgCqMpgBlNYTgtfuHxaaNnCaGOeAq5P4ew==" + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/@mendix/native/-/native-9.1.0.tgz", + "integrity": "sha512-fwUR2LWRxUPko9XOxwwz5B5HeEMdf4GZlG0H1LbIa0GmOv90rQsnW5pc1yFgTWerUEOwsvZlSWWmsWDlgfTbUQ==" }, "@nodelib/fs.scandir": { "version": "2.1.5", diff --git a/package.json b/package.json index 7296b78..bbdec57 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "snyk:android": "cd android && snyk monitor --gradle-sub-project=app --configuration-attributes='com.android.build.api.attributes.BuildTypeAttr:release,react-native-camera:general,org.jetbrains.kotlin.platform.type:androidJvm' --configuration-matching='compile|implementation' --org=appdev --project-name=developerapp-android${SNYK_SUBPROJECT}" }, "dependencies": { - "@mendix/native": "9.0.7", + "@mendix/native": "9.1.0", "@op-engineering/op-sqlite": "9.2.7", "@gorhom/bottom-sheet": "^5.1.1", "@react-native-async-storage/async-storage": "2.0.0",