2017-05-06 16:37:28 +02:00
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
2018-10-02 20:57:31 +02:00
ext {
2024-05-21 11:12:20 +02:00
buildToolsVersion = "34.0.0"
minSdkVersion = 23
2022-12-27 21:37:15 +02:00
2024-05-21 11:12:20 +02:00
compileSdkVersion = 34
targetSdkVersion = 34
2022-12-27 21:37:15 +02:00
2024-05-21 11:12:20 +02:00
ndkVersion = "26.1.10909125"
kotlinVersion = "1.9.22"
2018-10-02 20:57:31 +02:00
}
2017-05-06 16:37:28 +02:00
repositories {
2018-10-02 20:57:31 +02:00
google ( )
2021-11-02 18:33:53 +02:00
mavenCentral ( )
2017-05-06 16:37:28 +02:00
}
dependencies {
2024-05-21 11:12:20 +02:00
classpath ( "com.android.tools.build:gradle" )
2022-12-27 21:37:15 +02:00
classpath ( "com.facebook.react:react-native-gradle-plugin" )
2024-05-21 11:12:20 +02:00
classpath ( "org.jetbrains.kotlin:kotlin-gradle-plugin" )
2017-05-06 16:37:28 +02:00
}
}
allprojects {
repositories {
2024-08-13 15:40:45 +02:00
mavenCentral ( )
2023-06-10 18:02:58 +02:00
// Seems to be required for react-native-vosk, otherwise the lib looks for it at "https://maven.aliyun.com/repository/jcenter/com/alphacephei/vosk-android/0.3.46/vosk-android-0.3.46.aar" but it's not there. And we get this error:
//
// Execution failed for task ':app:checkDebugAarMetadata'.
// > Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
// > Failed to transform vosk-android-0.3.46.aar (com.alphacephei:vosk-android:0.3.46) to match attributes {artifactType=android-aar-metadata, org.gradle.status=release}.
// > Could not find vosk-android-0.3.46.aar (com.alphacephei:vosk-android:0.3.46).
// Searched in the following locations:
// https://maven.aliyun.com/repository/jcenter/com/alphacephei/vosk-android/0.3.46/vosk-android-0.3.46.aar
//
// But according to this page, the lib is on the Apache repository:
//
// https://search.maven.org/artifact/com.alphacephei/vosk-android/0.3.46/aar
maven { url "https://maven.apache.org" }
2023-01-04 22:18:51 +02:00
maven {
// Required by react-native-fingerprint-scanner
// https://github.com/hieuvp/react-native-fingerprint-scanner/issues/192
url "https://maven.aliyun.com/repository/jcenter"
}
2023-06-10 18:02:58 +02:00
// Also required for react-native-vosk?
maven { url "https://maven.google.com" }
// Maybe still needed to fetch above package?
2020-02-09 16:51:12 +02:00
google ( )
2020-10-16 17:26:19 +02:00
maven { url 'https://www.jitpack.io' }
2024-10-30 23:12:27 +02:00
maven {
// expo-camera bundles a custom com.google.android:cameraview
url "$rootDir/../node_modules/expo-camera/android/maven"
}
2017-05-06 16:37:28 +02:00
}
}
2024-05-21 11:12:20 +02:00
apply plugin: "com.facebook.react.rootproject"