Skip to content

Commit

Permalink
fix: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
4332weizi committed Dec 25, 2023
1 parent 14c1689 commit 8c1cea6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion android/app/src/main/java/com/tarodemo/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MainApplication : Application(), ReactApplication {
private val mTaroReactNativeHost: TaroReactNativeHost = TaroReactNativeHost(this)
private val mReactNativeHost: ReactNativeHost = ReactNativeHostWrapper(this, mTaroReactNativeHost)

override fun getReactNativeHost(): ReactNativeHost = mReactNativeHost
override val reactNativeHost: ReactNativeHost get() = mReactNativeHost

fun getTaroReactNativeHost(): TaroReactNativeHost = mTaroReactNativeHost

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ object TaroDevManager {
}
}

private val application = MainApplication.getInstance()
private val application = MainApplication.instance
private val packagerConnectionSettings = PackagerConnectionSettings(application)

private val reactNativeHost = application.reactNativeHost
Expand Down Expand Up @@ -63,7 +63,7 @@ object TaroDevManager {
}

private fun setJsMainModuleName(jsMainModulePath: String) {
application.taroReactNativeHost.jsMainModulePath = jsMainModulePath
application.getTaroReactNativeHost().jsMainModulePath = jsMainModulePath
}

private fun reset() {
Expand Down Expand Up @@ -96,4 +96,4 @@ object TaroDevManager {
UiThreadUtil.runOnUiThread(runnable)
}
}
}
}

0 comments on commit 8c1cea6

Please sign in to comment.