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 all commits
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
2 changes: 1 addition & 1 deletion CodePush.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.author = package['author']
s.license = package['license']
s.homepage = package['homepage']
s.source = { :git => 'https://github.com/microsoft/react-native-code-push.git', :tag => "v#{s.version}"}
s.source = { :git => 'https://github.com/CodePushNext/react-native-code-push.git', :tag => "v#{s.version}"}
s.ios.deployment_target = '15.5'
s.tvos.deployment_target = '15.5'
s.preserve_paths = '*.js'
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
View,
} from 'react-native';

import CodePush from "react-native-code-push";
import CodePush from "@code-push-next/react-native-code-push";

class App extends Component<{}> {
constructor() {
Expand Down
3 changes: 1 addition & 2 deletions Examples/CodePushDemoApp/android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
rootProject.name = 'CodePushDemoApp'
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
include ':app', ':react-native-code-push'
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
include ':app'
2 changes: 1 addition & 1 deletion Examples/CodePushDemoApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"react": "17.0.2",
"react-native": "0.68.5",
"react-native-code-push": "8.1.0"
"@code-push-next/react-native-code-push": "8.1.0"
},
"resolutions": {
"strip-ansi": "^6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoAppCpp/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
View,
} from 'react-native';

import CodePush from "react-native-code-push";
import CodePush from "@code-push-next/react-native-code-push";

class App extends Component<{}> {
constructor() {
Expand Down
2 changes: 1 addition & 1 deletion Examples/CodePushDemoAppCpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"dependencies": {
"react": "^17.0.2",
"react-native": "^0.68.5",
"react-native-code-push": "^8.1.0",
"@code-push-next/react-native-code-push": "^8.1.0",
"react-native-windows": "^1.0.0"
},
"resolutions": {
Expand Down
2 changes: 2 additions & 0 deletions Examples/CodePushDemoAppNewArch/.bundle/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
BUNDLE_PATH: "vendor/bundle"
BUNDLE_FORCE_RUBY_PLATFORM: 1
4 changes: 4 additions & 0 deletions Examples/CodePushDemoAppNewArch/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: '@react-native',
};
64 changes: 64 additions & 0 deletions Examples/CodePushDemoAppNewArch/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof
.cxx/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

**/fastlane/report.xml
**/fastlane/Preview.html
**/fastlane/screenshots
**/fastlane/test_output

# Bundle artifact
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
/vendor/bundle/
7 changes: 7 additions & 0 deletions Examples/CodePushDemoAppNewArch/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
arrowParens: 'avoid',
bracketSameLine: true,
bracketSpacing: false,
singleQuote: true,
trailingComma: 'all',
};
1 change: 1 addition & 0 deletions Examples/CodePushDemoAppNewArch/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
118 changes: 118 additions & 0 deletions Examples/CodePushDemoAppNewArch/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
*/

import React from 'react';
import type {PropsWithChildren} from 'react';
import {
SafeAreaView,
ScrollView,
StatusBar,
StyleSheet,
Text,
useColorScheme,
View,
} from 'react-native';

import {
Colors,
DebugInstructions,
Header,
LearnMoreLinks,
ReloadInstructions,
} from 'react-native/Libraries/NewAppScreen';

type SectionProps = PropsWithChildren<{
title: string;
}>;

function Section({children, title}: SectionProps): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';
return (
<View style={styles.sectionContainer}>
<Text
style={[
styles.sectionTitle,
{
color: isDarkMode ? Colors.white : Colors.black,
},
]}>
{title}
</Text>
<Text
style={[
styles.sectionDescription,
{
color: isDarkMode ? Colors.light : Colors.dark,
},
]}>
{children}
</Text>
</View>
);
}

function App(): React.JSX.Element {
const isDarkMode = useColorScheme() === 'dark';

const backgroundStyle = {
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
};

return (
<SafeAreaView style={backgroundStyle}>
<StatusBar
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
backgroundColor={backgroundStyle.backgroundColor}
/>
<ScrollView
contentInsetAdjustmentBehavior="automatic"
style={backgroundStyle}>
<Header />
<View
style={{
backgroundColor: isDarkMode ? Colors.black : Colors.white,
}}>
<Section title="Step One">
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
screen and then come back to see your edits.
</Section>
<Section title="See Your Changes">
<ReloadInstructions />
</Section>
<Section title="Debug">
<DebugInstructions />
</Section>
<Section title="Learn More">
Read the docs to discover what to do next:
</Section>
<LearnMoreLinks />
</View>
</ScrollView>
</SafeAreaView>
);
}

const styles = StyleSheet.create({
sectionContainer: {
marginTop: 32,
paddingHorizontal: 24,
},
sectionTitle: {
fontSize: 24,
fontWeight: '600',
},
sectionDescription: {
marginTop: 8,
fontSize: 18,
fontWeight: '400',
},
highlight: {
fontWeight: '700',
},
});

export default App;
8 changes: 8 additions & 0 deletions Examples/CodePushDemoAppNewArch/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby ">= 2.6.10"

# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
114 changes: 114 additions & 0 deletions Examples/CodePushDemoAppNewArch/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.7)
base64
nkf
rexml
activesupport (7.2.1.2)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
bigdecimal (3.1.8)
claide (1.1.0)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
netrc (~> 0.11)
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
drb (2.2.1)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.17.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.4)
logger (1.6.1)
minitest (5.25.1)
molinillo (0.8.0)
nanaimo (0.4.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.3.9)
ruby-macho (2.5.1)
securerandom (0.3.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.26.0)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.4.0)
rexml (>= 3.3.6, < 4.0)

PLATFORMS
ruby

DEPENDENCIES
activesupport (>= 6.1.7.5, != 7.1.0)
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)

RUBY VERSION
ruby 3.3.0p0

BUNDLED WITH
2.5.4
Loading