From e27b7fe5b9e1d7be53027b26738addcf4df10440 Mon Sep 17 00:00:00 2001 From: Martin Frouin Date: Thu, 26 Oct 2023 14:13:21 +0200 Subject: [PATCH] Fix android build --- README.md | 2 +- android/build.gradle | 5 ++++- android/gigya-sdk/build.gradle | 2 ++ .../gigya-android-sdk-core-v7.0.5.aar | Bin android/settings.gradle | 1 + 5 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 android/gigya-sdk/build.gradle rename android/{libs => gigya-sdk}/gigya-android-sdk-core-v7.0.5.aar (100%) create mode 100644 android/settings.gradle diff --git a/README.md b/README.md index e6e7de09f..8f31d9543 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# React Native WebView +# React Native Gigya WebView Forked from [react-native-webview/react-native-webview](https://github.com/react-native-webview/react-native-webview) diff --git a/android/build.gradle b/android/build.gradle index 067b0745c..b15a682aa 100644 --- a/android/build.gradle +++ b/android/build.gradle @@ -101,13 +101,16 @@ repositories { } dependencies { + api project(':gigya-sdk') implementation 'com.google.code.gson:gson:2.8.9' implementation 'com.facebook.react:react-native:+' implementation "org.jetbrains.kotlin:kotlin-stdlib:${safeExtGet('kotlinVersion')}" implementation "androidx.webkit:webkit:${safeExtGet('webkitVersion')}" - implementation files('libs/gigya-android-sdk-core-v7.0.5.aar') } +configurations.maybeCreate("default") +artifacts.add("default", file('[nameOfTheAar].aar')) + if (isNewArchitectureEnabled()) { react { jsRootDir = file("../src/") diff --git a/android/gigya-sdk/build.gradle b/android/gigya-sdk/build.gradle new file mode 100644 index 000000000..48428cbcb --- /dev/null +++ b/android/gigya-sdk/build.gradle @@ -0,0 +1,2 @@ +configurations.maybeCreate("default") +artifacts.add("default", file('gigya-android-sdk-core-v7.0.5.aar')) \ No newline at end of file diff --git a/android/libs/gigya-android-sdk-core-v7.0.5.aar b/android/gigya-sdk/gigya-android-sdk-core-v7.0.5.aar similarity index 100% rename from android/libs/gigya-android-sdk-core-v7.0.5.aar rename to android/gigya-sdk/gigya-android-sdk-core-v7.0.5.aar diff --git a/android/settings.gradle b/android/settings.gradle new file mode 100644 index 000000000..590aece09 --- /dev/null +++ b/android/settings.gradle @@ -0,0 +1 @@ +include ':gigya-sdk' \ No newline at end of file