buildscript {
    if (project == rootProject) {
        repositories {
            google()
            mavenCentral()
        }

        dependencies {
            classpath 'com.android.tools.build:gradle:8.6.1'
        }
    }
}

apply plugin: 'com.android.library'

android {
  namespace "com.reactnativecashfreepgsdk"
    defaultConfig {
      minSdkVersion 21
      compileSdk 35
    }

    buildTypes {
        release {
            minifyEnabled false
        }
    }
    lintOptions {
        disable 'GradleCompatible'
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

repositories {
    mavenLocal()
    maven {
        // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
        url("$rootDir/../node_modules/react-native/android")
    }
    google()
    mavenCentral()
}

rootProject.allprojects {
  repositories {
    google()
    mavenCentral()
  }
}

dependencies {
  //noinspection GradleDynamicVersion
  implementation 'androidx.appcompat:appcompat:1.3.0'
  implementation 'com.google.android.material:material:1.4.0'
  implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
  implementation 'androidx.gridlayout:gridlayout:1.0.0'

  implementation 'com.cashfree.pg:api:2.4.0'
  implementation "com.facebook.react:react-native:+"  // From node_modules
}
