Skip to content

Commit

Permalink
chore(android): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tido64 committed Aug 19, 2022
1 parent 9586e0f commit 7ff2483
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 22 deletions.
5 changes: 0 additions & 5 deletions android/test-app-util.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ import java.security.MessageDigest

ext.manifest = null

ext.buildReactNativeFromSource = { baseDir ->
def reactNativePath = findNodeModulesPath("react-native", baseDir)
return !file("${reactNativePath}/android").exists()
}

ext.findFile = { fileName ->
def currentDirPath = rootDir == null ? null : rootDir.toString()

Expand Down
17 changes: 0 additions & 17 deletions test-app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,6 @@ def cliAndroidDir = findNodeModulesPath("@react-native-community/cli-platform-an
apply(from: "${cliAndroidDir}/native_modules.gradle")

ext.applyTestAppSettings = { DefaultSettings settings ->
if (settings.buildReactNativeFromSource(settings.rootDir)) {
def buildFile = Paths.get("${testAppDir}/android/react-native-build.gradle")
settings.rootProject.buildFileName = settings.rootDir.toPath().relativize(buildFile)

def reactNativeDir = findNodeModulesPath("react-native", settings.rootDir)
settings.include(":ReactAndroid")
settings.project(":ReactAndroid")
.projectDir = file("${reactNativeDir}/ReactAndroid")

settings.include(":packages:react-native-codegen:android")
settings.project(":packages:react-native-codegen:android")
.projectDir = file("${reactNativeDir}/packages/react-native-codegen/android")

settings.includeBuild("${reactNativeDir}/packages/react-native-codegen/android")
settings.includeBuild("${reactNativeDir}/packages/react-native-gradle-plugin")
}

settings.include(":app")
settings.include(":support")

Expand Down

0 comments on commit 7ff2483

Please sign in to comment.