Open History to see the last commit
1apply plugin: 'com.android.library'
2apply plugin: 'org.jetbrains.kotlin.android'
3
4group = 'com.t3tools.terminal'
5version = '0.0.0'
6
7android {
8 namespace 'expo.modules.t3terminal'
9 ndkVersion rootProject.ext.ndkVersion
10 compileSdk rootProject.ext.compileSdkVersion
11
12 testOptions {
13 unitTests.includeAndroidResources = true
14 }
15
16 defaultConfig {
17 minSdkVersion rootProject.ext.minSdkVersion
18 targetSdkVersion rootProject.ext.targetSdkVersion
19
20 def requestedArchitectures = project.findProperty('reactNativeArchitectures')
21 if (requestedArchitectures) {
22 ndk {
23 abiFilters(*requestedArchitectures.split(','))
24 }
25 }
26
27 externalNativeBuild {
28 cmake {
29 cppFlags '-std=c++17 -Wall -Wextra -Werror'
30 }
31 }
32 }
33
34 externalNativeBuild {
35 cmake {
36 path 'src/main/cpp/CMakeLists.txt'
37 version '3.22.1'
38 }
39 }
40}
41
42dependencies {
43 implementation project(':expo-modules-core')
44 testImplementation 'junit:junit:4.13.2'
45 testImplementation 'org.robolectric:robolectric:4.16.1'
46}
47
48tasks.withType(Test).configureEach {
49 javaLauncher = javaToolchains.launcherFor {
50 languageVersion = JavaLanguageVersion.of(21)
51 }
52}