Skip to content

Commit

Permalink
fat aar ok
Browse files Browse the repository at this point in the history
  • Loading branch information
kr.mao committed Jul 28, 2022
1 parent 1d6323c commit 8f4e940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
def OK_HTTP_VERSION = "3.12.1"
def SO_LOADER_VERSION = "0.8.0"


api 'com.codesdancing.libraries:library-base:0.0.2.9'

//noinspection GradleDependency
Expand All @@ -58,7 +59,9 @@ dependencies {
api("com.facebook.fresco:imagepipeline-okhttp3:${FRESCO_VERSION}")
api("com.facebook.soloader:soloader:${SO_LOADER_VERSION}")
api("com.facebook.fbjni:fbjni-java-only:0.0.3")
embed("com.facebook.react:react-native:${rootProject.ext.reactNativeVersion}")
debugEmbed(name: "react-native-${rootProject.ext.reactNativeVersion}-debug", ext: 'aar')
releaseEmbed(name: "react-native-${rootProject.ext.reactNativeVersion}-release", ext: 'aar')
// embed("com.facebook.react:react-native:${rootProject.ext.reactNativeVersion}")
}

apply plugin: "maven"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ buildscript {
ext.godeyeVersion = "3.2.1"
ext.godeyeMethodCanaryVersion = "0.15.2"
ext.walleVersion = "1.1.6"
ext.reactNativeVersion = "0.69.3"

repositories {
google()
Expand All @@ -30,7 +31,7 @@ buildscript {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.30"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5" // https://github.com/bintray/gradle-bintray-plugin
classpath 'com.github.kezong:fat-aar:1.3.5' // https://github.com/kezong/fat-aar-android
classpath 'com.github.kezong:fat-aar:1.3.8' // https://github.com/kezong/fat-aar-android
}
}

Expand All @@ -41,6 +42,7 @@ allprojects {
maven { url("${gradle.ext.modules.reactNative.nodeModulesPath}/jsc-android/dist") } // Android JSC is installed from npm

flatDir { dirs "file://$rootProject.projectDir/../repo" }
flatDir { dirs "file://${gradle.ext.modules.reactNative.nodeModulesPath}/react-native/android/com/facebook/react/react-native/${reactNativeVersion}" }

maven { url "https://jitpack.io" }
mavenLocal()
Expand Down Expand Up @@ -106,9 +108,6 @@ ext {
androidXMaterialVersion = "1.2.1"
androidXLifecycleVersion = "2.3.0-beta01"

// React Native Version
reactNativeVersion = "0.69.3"

smartRefreshLayoutVersion = "2.0.1"
// guavaVersion = "24.1-jre"
junitVersion = "4.12"
Expand Down

0 comments on commit 8f4e940

Please sign in to comment.