rootProject.name = 'MySdkTest'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app'
includeBuild('../node_modules/@react-native/gradle-plugin')


// Helper function to include native modules
def includeModule(name) {
    include ":${name}"
    project(":${name}").projectDir = new File(rootProject.projectDir, "../node_modules/${name}/android")
}

// List of native modules to include
def nativeModules = [
        'react-native-vector-icons',
        'react-native-fast-image',
        'react-native-reanimated',
        'react-native-pure-jwt',
        'react-native-reanimated-carousel',
        'react-native-orientation-locker',
        'react-native-charts-wrapper',
        'react-native-document-picker',
        'react-native-gesture-handler',
        'react-native-svg',
        'react-native-track-player',
        'react-native-user-agent',
        'react-native-video',
        'deprecated-react-native-prop-types',
        'react-native-permissions'
        // 'react-native-async-storage/async-storage'
]

// Include and set project directory for each native module
nativeModules.each { includeModule(it) }
