Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuration 'compile' is obsolete #12

Open
cihati opened this issue Sep 17, 2019 · 1 comment
Open

Configuration 'compile' is obsolete #12

cihati opened this issue Sep 17, 2019 · 1 comment

Comments

@cihati
Copy link

cihati commented Sep 17, 2019

Version: 0.2.1

> Configure project :react-native-intent-launcher
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
@focux
Copy link

focux commented Apr 14, 2022

Since SDK 30, it fails when trying to compile using the compile configuration. It seems that this package is not maintained anymore so if someone wants to fix this issue, here is the patch:

diff --git a/node_modules/react-native-intent-launcher/android/build.gradle b/node_modules/react-native-intent-launcher/android/build.gradle
index ae3c73b..8e8929f 100644
--- a/node_modules/react-native-intent-launcher/android/build.gradle
+++ b/node_modules/react-native-intent-launcher/android/build.gradle
@@ -16,7 +16,7 @@ android {
 }
 
 dependencies {
-    compile fileTree(dir: "libs", include: ["*.jar"])
-    compile "com.android.support:appcompat-v7:+"
-    compile "com.facebook.react:react-native:+"  // From node_modules
+    implementation fileTree(dir: "libs", include: ["*.jar"])
+    implementation "com.android.support:appcompat-v7:+"
+    implementation "com.facebook.react:react-native:+"  // From node_modules
 }

@poberwong Let me know If you are willing to review my PR and I can submit one with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants