OverviewFilesCommitsIssuesDocsReleasesPeers

favela-android / android / build.gradle

24 lines · gradle ref:
buildscript {
  ext {
    buildToolsVersion = "34.0.0"
    minSdkVersion = 29        // Android 10, matching what react-native-bare-kit 0.14.5 declares and
                              // what Keet 4.20.0 ships. ⛔ DO NOT BUMP react-native-bare-kit TO 0.15.0:
                              // that release raises the core AAR's own minSdk to 31 AND links
                              // libnativehelper.so, which is not in the app linker namespace below
                              // API 31 — so libappmodules.so fails to load, RN swallows the
                              // UnsatisfiedLinkError in DefaultSoLoader, and it surfaces much later as
                              // a bogus "TurboModuleRegistry ... 'DeviceInfo' could not be found".
                              // 0.14.5's libbare-kit.so is byte-identical to the one Keet runs.
    compileSdkVersion = 34
    targetSdkVersion = 34
    ndkVersion = "27.1.12297006"   // RN 0.86.2 declares this. NDK 26 fails: RN uses std::format
                                   // (C++20) and NDK 26 libc++ has no std::format. Not optional.
  }
  repositories { google(); mavenCentral() }
  dependencies {
    classpath("com.android.tools.build:gradle")
    classpath("com.facebook.react:react-native-gradle-plugin")
    classpath("org.jetbrains.kotlin:kotlin-gradle-plugin")
  }
}