@@ -15,16 +15,9 @@ buildscript {
1515 }
1616}
1717
18- def isNewArchitectureEnabled () {
19- return rootProject. hasProperty(" newArchEnabled" ) && rootProject. getProperty(" newArchEnabled" ) == " true"
20- }
21-
2218apply plugin : " com.android.library"
2319apply plugin : " kotlin-android"
24-
25- if (isNewArchitectureEnabled()) {
26- apply plugin : " com.facebook.react"
27- }
20+ apply plugin : " com.facebook.react"
2821
2922def getExtOrDefault (name ) {
3023 return rootProject. ext. has(name) ? rootProject. ext. get(name) : project. properties[" RNIterable_" + name]
@@ -59,7 +52,6 @@ android {
5952 defaultConfig {
6053 minSdkVersion getExtOrIntegerDefault(" minSdkVersion" )
6154 targetSdkVersion getExtOrIntegerDefault(" targetSdkVersion" )
62- buildConfigField(" boolean" , " IS_NEW_ARCHITECTURE_ENABLED" , isNewArchitectureEnabled(). toString())
6355 }
6456
6557 buildFeatures {
@@ -81,16 +73,6 @@ android {
8173 targetCompatibility JavaVersion . VERSION_1_8
8274 }
8375
84- sourceSets {
85- main {
86- if (isNewArchitectureEnabled()) {
87- java. srcDirs + = [' src/newarch' ]
88- } else {
89- java. srcDirs + = [' src/oldarch' ]
90- }
91- }
92- }
93-
9476 // Add this to match the Iterable SDK group ID
9577 group = " com.iterable"
9678}
@@ -108,4 +90,3 @@ dependencies {
10890 api " com.iterable:iterableapi:3.6.2"
10991 // api project(":iterableapi") // links to local android SDK repo rather than by release
11092}
111-
0 commit comments