Closed k3-cat closed 2 years ago
I have the same issue here. Any idea of a fix/workaround? I have an app update to release but this is blocking the build.
I have the same issue here. Any idea of a fix/workaround? I have an app update to release but this is blocking the build.
I think we have to wait the author to update the build.gradle
file.
Something like replace maven with maven-publish, rewrite tasks, and update the version of gradle plugin version.
@Pix-00 and @Reuben-BeaconTech, I am working on it. I will release a fix ASAP.
@Pix-00 and @Reuben-BeaconTech, I am working on it. I will release a fix ASAP.
Tanks very much.
@Pix-00, could you test if changing the gradle.build
file in node_modules/react-native-tcp-socket/android
to the following fixes your issue:
apply plugin: 'com.android.library'
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}
android {
compileSdkVersion safeExtGet('compileSdkVersion', 29)
defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 21)
targetSdkVersion safeExtGet('targetSdkVersion', 29)
}
}
dependencies {
//noinspection GradleDynamicVersion
implementation 'com.facebook.react:react-native:+' // From node_modules
}
@Rapsssito Yes, it works. Thanks a lot ヾ(≧▽≦*)o.
:tada: This issue has been resolved in version 5.3.1 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Description
Failed to build app with
react-native-tcp-socket
using Gradle 7 and corresponding Gradle Plugin.Steps to reproduce
Steps to reproduce the behavior:
Or code:
Current behavior
Unable to build the app.
Expected behavior
Able to build the app with
react-native-tcp-socket
using Gradle 7 -- asreact-native
and other packages (such asreact-native-screens
react-native-gesture-handler
react-native-get-random-values
.etc) already supports Gradle 7 with corresponding Gradle Plugin.Screenshots
Relevant information
NOTE: https://docs.gradle.org/7.0/userguide/upgrading_version_6.html