apply plugin: "com.android.library"

android {
    namespace "com.sekizlipenguen.reactnativeappexit"
    compileSdkVersion rootProject.ext.compileSdkVersion

    defaultConfig {
        minSdkVersion 21 // React Native 0.60+ ve temel Android API'leri için minimum sürüm
        targetSdkVersion 33 // En son Android sürümü için optimize
        buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", "false" // Yeni mimari kapalı
    }

    buildFeatures {
        buildConfig true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

repositories {
    mavenCentral()
    google()
}

dependencies {
    implementation "com.facebook.react:react-native:+" // React Native bağımlılığı
}
