apply plugin: 'com.android.library'
apply plugin: 'com.facebook.react'

android {
    compileSdk 35
    namespace "com.patriotnative"

    defaultConfig {
        minSdk 24
        targetSdk 35

        ndk {
            abiFilters "arm64-v8a", "x86_64"
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_17
        targetCompatibility JavaVersion.VERSION_17
    }

    packaging {
        pickFirst "**/libc++_shared.so"
        pickFirst "**/libjsc.so"
    }

    publishing {
        singleVariant("release") {
            withSourcesJar()
        }
    }

}

react {
    libraryName = "PatriotNative"
    codegenJavaPackageName = "com.patriotnative"
}

dependencies {
    implementation "com.facebook.react:react-android"
    implementation 'androidx.annotation:annotation:1.7.0'
    implementation 'com.google.android.gms:play-services-wearable:18.2.0'
    implementation 'androidx.wear:wear-remote-interactions:1.0.0'
}
