Skip to content

Commit

Permalink
fat aar ok +1
Browse files Browse the repository at this point in the history
  • Loading branch information
kr.mao committed Jul 28, 2022
1 parent 8f4e940 commit 5d443df
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import com.facebook.react.bridge.Promise
import com.facebook.react.bridge.ReactContext
import com.facebook.react.common.LifecycleState
import com.facebook.react.devsupport.DevLoadingViewController
import com.facebook.react.devsupport.RedBoxHandler
import com.facebook.react.devsupport.interfaces.ErrorType
import com.facebook.react.devsupport.interfaces.RedBoxHandler
import com.facebook.react.devsupport.interfaces.StackFrame
import com.facebook.react.shell.MainPackageConfig
import com.facebook.react.shell.MainReactPackage
Expand All @@ -31,7 +32,7 @@ import com.smart.library.util.STLogUtil
import com.smart.library.util.STReflectUtil
import com.smart.library.util.STToastUtil
import com.smart.library.util.cache.STCacheManager
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage
import com.swmansion.gesturehandler.RNGestureHandlerPackage
import com.swmansion.reanimated.ReanimatedPackage
import com.th3rdwave.safeareacontext.SafeAreaContextPackage
import io.reactivex.Flowable
Expand Down Expand Up @@ -302,7 +303,7 @@ object RNInstanceManager {
.setApplication(application)
.setUIImplementationProvider(UIImplementationProvider())
.setRedBoxHandler(object : RedBoxHandler {
override fun handleRedbox(title: String?, stack: Array<out StackFrame>?, errorType: RedBoxHandler.ErrorType?) {
override fun handleRedbox(title: String?, stack: Array<out StackFrame>?, errorType: ErrorType?) {
STLogUtil.e(TAG, "handleRedbox errorType:${errorType?.name}, title:$title, stack:$stack")
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,34 +1,27 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlinVersion = "1.3.71"
ext.kotlinVersion = "1.6.10"
ext.kotlinxCoroutinesVersion = "1.4.1"
ext.ankoVersion = "0.8.2"
ext.walleVersion = "1.1.6"
ext.godeyeVersion = "3.2.1"
ext.godeyeMethodCanaryVersion = "0.15.2"
ext.walleVersion = "1.1.6"
ext.reactNativeVersion = "0.69.3"

repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
maven {
url("https://jitpack.io")
}
maven {
url("https://dl.bintray.com/kotlin/dokka")
}
}

dependencies {
//noinspection GradleDependency
classpath 'com.android.tools.build:gradle:4.1.1'
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlinVersion"
//noinspection DifferentKotlinGradleVersion
classpath 'com.android.tools.build:gradle:4.1.3'

classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"

classpath "org.jetbrains.kotlin:kotlin-android-extensions:$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.8' // https://github.com/kezong/fat-aar-android
Expand All @@ -44,15 +37,10 @@ allprojects {
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()
google()
jcenter()
maven { url 'https://jitpack.io' }
maven { url 'https://plugins.gradle.org/m2/' }
mavenCentral()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
Expand All @@ -62,6 +50,17 @@ allprojects {
tasks.withType(Javadoc) {
options.encoding = "UTF-8"
}

tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
kotlinOptions {
jvmTarget = "1.8"
}
}

tasks.withType(JavaCompile).configureEach {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
}

task clean(type: Delete) {
Expand All @@ -87,25 +86,28 @@ ext {
// https://dl.google.com/dl/android/maven2/index.html
// https://developer.android.google.cn/studio/releases/gradle-plugin#updating-plugin
// 设置为 29 报错 Media projections require a foreground service of type ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PRO
targetSdkVersion = 28
compileSdkVersion = 28
buildToolsVersion = "28.0.3" //"28.0.3"
targetSdkVersion = 30
compileSdkVersion = 30
buildToolsVersion = "30.0.0" //"28.0.3"

// App dependencies
supportLibraryVersion = "28.0.0" // "28.0.0"
constraintLayoutVersion = "2.0.0-beta3"

// AndroidX
androidXVersion = "1.0.0"
androidXCoreVersion = "1.3.1"
androidXVersion = "1.1.0"
androidXViewPagerVersion = "1.0.0"
androidXCardViewVersion = "1.0.0"
androidXLegacySupportV4Version = "1.0.0"
androidXCoreVersion = "1.3.2"
androidXMultidexVersion = "2.0.1"
androidXAnnotationVersion = "1.1.0"
androidXAppCompatVersion = "1.1.0"
androidXRecyclerViewVersion = "1.1.0"
androidXAnnotationVersion = "1.2.0"
androidXAppCompatVersion = "1.2.0"
androidXRecyclerViewVersion = "1.2.0-rc01"
androidXVectorDrawableVersion = "1.1.0"
androidXFragmentVersion = "1.2.5"
androidXConstraintlayoutVersion = "2.0.0-rc1"
androidXMaterialVersion = "1.2.1"
androidXFragmentVersion = "1.3.2"
androidXConstraintlayoutVersion = "2.0.4"
androidXMaterialVersion = "1.3.0"
androidXLifecycleVersion = "2.3.0-beta01"

smartRefreshLayoutVersion = "2.0.1"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<versioning>
<versions>
<version>0.62.2.1-SNAPSHOT</version>
<version>0.69.3.1-SNAPSHOT</version>
</versions>
<lastUpdated>20201029060941</lastUpdated>
<lastUpdated>20220728094805</lastUpdated>
</versioning>
</metadata>
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7c77482af606ad939ce13d3c6ac35ef9
38e5f5603fd5475af6de377e1efbbbc1
Original file line number Diff line number Diff line change
@@ -1 +1 @@
88102eea067ca34f41a6127a538cb3f6631fa004
c2131d462363b8535be14bcb37f85c3252431c66

0 comments on commit 5d443df

Please sign in to comment.