goon/mobile/android/build.gradle
goon-foss df6b6c7f3f
Some checks failed
Backend tests / test (push) Waiting to run
Build Android APK / build (push) Has been cancelled
fix(android): jedna ReactActivity (alias TV), pion z kodu, symbole natywne do Sentry; 0.4.3
- TvMainActivity to activity-alias na MainActivity: dwie ReactActivity naraz
  walily asercja przy pauzie na Android TV
- blokada pionu w MainActivity.onCreate poza TV zamiast screenOrientation
  w manifescie (alias nie moze go nadpisac, TV ma ekran poziomy)
- Sentry Android Gradle Plugin: uploadNativeSymbols i mapping, tylko gdy build
  ma SENTRY_AUTH_TOKEN; autoInstallation i instrumentacja wylaczone
- versionCode 17, versionName 0.4.3
2026-10-13 11:08:45 +02:00

50 lines
2.2 KiB
Groovy

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
buildToolsVersion = findProperty('android.buildToolsVersion') ?: '35.0.0'
minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '24')
compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '35')
targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '34')
kotlinVersion = findProperty('android.kotlinVersion') ?: '1.9.25'
ndkVersion = "26.1.10909125"
// Chromecast (react-native-google-cast). Biblioteka czyta to przez `safeExtGet`
// z rootProject.ext, a bez wpisu bierze "+", czyli wersje z dnia buildu. Pinujemy,
// zeby dwa buildy z tego samego commita dawaly ten sam APK.
castFrameworkVersion = "21.5.0"
}
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')
// Symbole natywne (.so) i mapping ProGuard do Sentry. sentry.gradle z @sentry/react-native
// wysyla tylko bundle JS i source mapy; natywne crashe SIGABRT byly przez to
// nieczytelne. Wersja 4.14.x dziala z AGP 8.x i sentry-android 7.x z RN SDK 6.10.
classpath('io.sentry:sentry-android-gradle-plugin:4.14.1')
}
}
apply plugin: "com.facebook.react.rootproject"
allprojects {
repositories {
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
}
maven {
// Android JSC is installed from npm
url(new File(['node', '--print', "require.resolve('jsc-android/package.json', { paths: [require.resolve('react-native/package.json')] })"].execute(null, rootDir).text.trim(), '../dist'))
}
google()
mavenCentral()
maven { url 'https://www.jitpack.io' }
}
}