Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions lib/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,27 +167,6 @@ List reactNativeVersionComponents(rnPackageJsonFile) {
return reactNativeVersion.tokenize('-')[0].tokenize('.')
}

task installBuildToolsAndRenameD8IfNeeded {
def buildToolsVersion = android.getBuildToolsVersion()
def sdkDir = android.sdkDirectory
def buildToolsDir = new File(sdkDir, "/build-tools/" + buildToolsVersion)

if (!buildToolsDir.exists()) {
def command = sdkDir.absolutePath + "/cmdline-tools/latest/bin/sdkmanager build-tools;" + buildToolsVersion
command.execute().waitForProcessOutput(System.out, System.err)
}

def d8File = new File(buildToolsDir, "d8")
def dxFile = new File(buildToolsDir, "dx")
d8File.renameTo(dxFile)

def buildToolsLibDir = new File(buildToolsDir, "lib")
d8File = new File(buildToolsLibDir, "d8.jar")
dxFile = new File(buildToolsLibDir, "dx.jar")
d8File.renameTo(dxFile)
}
build.dependsOn installBuildToolsAndRenameD8IfNeeded

dependencies {

implementation "androidx.core:core-ktx:1.6.0"
Expand Down