The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | apply plugin: 'com.android.library' |
| 2 | apply plugin: 'org.jetbrains.kotlin.android' |
| 3 | apply from: '../nitrogen/generated/android/t3highlights+autolinking.gradle' |
| 4 | |
| 5 | group = 'com.t3tools.highlights' |
| 6 | version = '0.0.0' |
| 7 | |
| 8 | android { |
| 9 | namespace 'com.margelo.nitro.t3highlights' |
| 10 | ndkVersion rootProject.ext.ndkVersion |
| 11 | compileSdk rootProject.ext.compileSdkVersion |
| 12 | |
| 13 | defaultConfig { |
| 14 | minSdkVersion rootProject.ext.minSdkVersion |
| 15 | targetSdkVersion rootProject.ext.targetSdkVersion |
| 16 | |
| 17 | def requestedArchitectures = project.findProperty('reactNativeArchitectures') |
| 18 | if (requestedArchitectures) { |
| 19 | ndk { |
| 20 | abiFilters(*requestedArchitectures.split(',')) |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | externalNativeBuild { |
| 25 | cmake { |
| 26 | cppFlags '-frtti -fexceptions -Wall -Wextra' |
| 27 | arguments '-DANDROID_STL=c++_shared', '-DANDROID_SUPPORT_FLEXIBLE_PAGE_SIZES=ON' |
| 28 | } |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | externalNativeBuild { |
| 33 | cmake { |
| 34 | path 'CMakeLists.txt' |
| 35 | version '3.22.1' |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | buildFeatures { |
| 40 | prefab true |
| 41 | } |
| 42 | |
| 43 | packagingOptions { |
| 44 | excludes = [ |
| 45 | '**/libc++_shared.so', |
| 46 | '**/libfbjni.so', |
| 47 | '**/libjsi.so', |
| 48 | '**/libreactnative.so', |
| 49 | '**/libNitroModules.so', |
| 50 | ] |
| 51 | } |
| 52 | } |
| 53 | |
| 54 | dependencies { |
| 55 | implementation 'com.facebook.react:react-android' |
| 56 | implementation project(':react-native-nitro-modules') |
| 57 | } |
| 58 | |
| 59 | // CMake reads Nitro's prefab headers, which its prepareHeaders task writes. |
| 60 | tasks.configureEach { task -> |
| 61 | if (task.name.contains('configureCMake') || task.name.contains('buildCMake')) { |
| 62 | task.dependsOn(':react-native-nitro-modules:prepareHeaders') |
| 63 | } |
| 64 | } |