def getExtOrDefault(name, defaultVaue) { return rootProject.ext.get(name) ?: defaultVaue } apply plugin: 'com.android.library' android { compileSdkVersion getExtOrDefault('compileSdkVersion', 28) defaultConfig { minSdkVersion getExtOrDefault('minSdkVersion', 16) targetSdkVersion getExtOrDefault('targetSdkVersion', 28) } lintOptions{ abortOnError false } } dependencies { //noinspection GradleDynamicVersion implementation 'com.facebook.react:react-native:+' }