Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
c692d2a
init android app of DemoCodePushAppNewArch example
CHOIMINSEOK Oct 28, 2024
2dc5b81
support new architecture on android sdk
CHOIMINSEOK Oct 29, 2024
098b6ef
exclude examples from compile
kmsbernard Nov 6, 2024
f56f07b
setup test with react-native v0.76.1
kmsbernard Nov 6, 2024
cec5a72
install code-push plugin from the new-arch branch
kmsbernard Nov 6, 2024
317647d
update package version
kmsbernard Nov 8, 2024
85a0ae9
fix gradle script replacement
kmsbernard Dec 14, 2024
bce27c2
add js bundle file supplier on react native host
CHOIMINSEOK Dec 14, 2024
5e2ccf7
fix test for old arch
kmsbernard Dec 14, 2024
097e7f0
add disabling new architecture script
kmsbernard Dec 14, 2024
ce2b6b2
add test script for old arch
kmsbernard Dec 14, 2024
c3a0f12
prevent reinitialize update
kmsbernard Dec 16, 2024
f4c6626
fix deprecated react-native cli
kmsbernard Jan 4, 2025
526f649
restore default NPM_PLUGIN_PATH
kmsbernard Jan 4, 2025
5c9fe26
lazy init PackageList & once
kmsbernard Jan 4, 2025
9c812b7
remove unnecessary code
kmsbernard Jan 4, 2025
9a9779e
remove log
kmsbernard Jan 4, 2025
b5eb89a
patch for ios
CHOIMINSEOK Jan 4, 2025
b90519c
tmp: ios test
kmsbernard Jan 4, 2025
6c0364b
toggle old arch
CHOIMINSEOK Jan 4, 2025
41f0e1b
update android setup
CHOIMINSEOK Jan 4, 2025
5be86cb
fix ios test util
kmsbernard Jan 4, 2025
755068a
use rn0.76.5 in test
kmsbernard Jan 4, 2025
82ac9d9
revert NPM_PLUGIN_PATH
kmsbernard Jan 4, 2025
fcbdae5
Merge pull request #4 from CodePushNext/support-new-arch
CHOIMINSEOK Jan 4, 2025
6d99a10
update npm configuration
CHOIMINSEOK Jan 19, 2025
68d8027
fix wrong import
CHOIMINSEOK Jan 19, 2025
cb4883a
update demo app dependency
CHOIMINSEOK Jan 19, 2025
de17604
fix path
CHOIMINSEOK Jan 19, 2025
748878d
10.0.0-alpha.2
CHOIMINSEOK Jan 19, 2025
2d326ec
10.0.0-alpha.3 - fix path
CHOIMINSEOK Jan 19, 2025
9ed46ed
fix android build error
CHOIMINSEOK Jan 19, 2025
501fe94
remove package manager field
CHOIMINSEOK Jan 19, 2025
8c3a99d
fix test code
CHOIMINSEOK Jan 19, 2025
a19d86e
Remove Redundant Gradle Module Overriding (#6)
CHOIMINSEOK Feb 2, 2025
203cc18
update readme
CHOIMINSEOK Feb 2, 2025
4b0b3e2
update setup guide
CHOIMINSEOK Feb 2, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
install code-push plugin from the new-arch branch
  • Loading branch information
kmsbernard committed Jan 4, 2025
commit cec5a729435c3a3264e6859e1b46e3d467ddc55a
2 changes: 1 addition & 1 deletion code-push-plugin-testing-framework/script/testConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var TestUtil_1 = require("./testUtil");
var DEFAULT_TEST_RUN_DIRECTORY = path.join(os.tmpdir(), TestUtil_1.TestUtil.getPluginName(), "test-run");
var DEFAULT_UPDATES_DIRECTORY = path.join(os.tmpdir(), TestUtil_1.TestUtil.getPluginName(), "updates");
var DEFAULT_PLUGIN_PATH = path.join(__dirname, "../..");
var NPM_PLUGIN_PATH = TestUtil_1.TestUtil.getPluginName();
var NPM_PLUGIN_PATH = "\"https://github.com/CodePushNext/react-native-code-push.git#support-new-arch\"" // TestUtil_1.TestUtil.getPluginName();
var SETUP_FLAG_NAME = "--setup";
var DEFAULT_PLUGIN_TGZ_NAME = TestUtil_1.TestUtil.getPluginName() + "-" + TestUtil_1.TestUtil.getPluginVersion() + ".tgz";
// CONST VARIABLES
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
package com.testcodepush

import android.app.Application
import com.facebook.react.PackageList
import com.facebook.react.ReactApplication
import com.facebook.react.ReactHost
import com.facebook.react.ReactNativeHost
import com.facebook.react.ReactPackage
import com.facebook.react.common.annotations.UnstableReactNativeAPI
import com.facebook.react.defaults.DefaultNewArchitectureEntryPoint.load
import com.facebook.react.defaults.DefaultReactHost.getDefaultReactHost
import com.facebook.react.defaults.DefaultReactNativeHost
import com.facebook.react.soloader.OpenSourceMergedSoMapping
import com.facebook.soloader.SoLoader
import com.microsoft.codepush.react.CodePush

@OptIn(UnstableReactNativeAPI::class)
class MainApplication : Application(), ReactApplication {

override val reactNativeHost: ReactNativeHost =
object : DefaultReactNativeHost(this) {
override fun getPackages(): List<ReactPackage> =
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
}

override fun getJSMainModuleName(): String = "index"

override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG

override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
}

override val reactHost: ReactHost
get() = getDefaultReactHost(
applicationContext,
PackageList(this).packages.apply {
// Packages that cannot be autolinked yet can be added manually here, for example:
// add(MyReactNativePackage())
},
jsMainModulePath = "index",
jsBundleAssetPath = "index.android.bundle",
jsBundleFilePath = CodePush.getJSBundleFile(),
isHermesEnabled = BuildConfig.IS_HERMES_ENABLED,
useDevSupport = BuildConfig.DEBUG,
)

override fun onCreate() {
super.onCreate()
SoLoader.init(this, OpenSourceMergedSoMapping)
if (BuildConfig.IS_NEW_ARCHITECTURE_ENABLED) {
// If you opted-in for the New Architecture, we load the native entry point for this app.
load()
}
}

}