Skip to content

Commit 4d0fbb0

Browse files
committed
🔀 fix: 병합 충돌 수정
2 parents 980109f + 290c536 commit 4d0fbb0

58 files changed

Lines changed: 236 additions & 869 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ What actually happens?
1616

1717
### Reproducible Demo
1818

19-
* Download https://github.com/microsoft/react-native-code-push/archive/master.zip and unzip. From `Examples` folder run `node create-app.js appName react-native@0.71.19 react-native-code-push@9.0.0` command to generate plain CodePushified React Native app. Please see description on top of `create-app.js` file content if needed
19+
* Download https://github.com/microsoft/react-native-code-push/archive/master.zip and unzip. From `Examples` folder run `node create-app.js appName react-native@0.71.19 react-native-code-push@9.0.1` command to generate plain CodePushified React Native app. Please see description on top of `create-app.js` file content if needed
2020
* If you can't reproduce the bug on it, provide us as much info as possible about your project
2121

2222
### Environment

CodePush.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99
s.author = package['author']
1010
s.license = package['license']
1111
s.homepage = package['homepage']
12-
s.source = { :git => 'https://github.com/microsoft/react-native-code-push.git', :tag => "v#{s.version}"}
12+
s.source = { :git => 'https://github.com/CodePushNext/react-native-code-push.git', :tag => "v#{s.version}"}
1313
s.ios.deployment_target = '15.5'
1414
s.tvos.deployment_target = '15.5'
1515
s.preserve_paths = '*.js'

Examples/CodePushDemoApp/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
View,
1010
} from 'react-native';
1111

12-
import CodePush from "react-native-code-push";
12+
import CodePush from "@chlee1001/react-native-code-push";
1313

1414
class App extends Component<{}> {
1515
constructor() {
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
rootProject.name = 'CodePushDemoApp'
22
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
3-
include ':app', ':react-native-code-push'
4-
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
3+
include ':app'

Examples/CodePushDemoApp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dependencies": {
1313
"react": "17.0.2",
1414
"react-native": "0.68.5",
15-
"react-native-code-push": "8.1.0"
15+
"@chlee1001/react-native-code-push": "8.1.0"
1616
},
1717
"resolutions": {
1818
"strip-ansi": "^6.0.1",

Examples/CodePushDemoAppCpp/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import {
1111
View,
1212
} from 'react-native';
1313

14-
import CodePush from "react-native-code-push";
14+
import CodePush from "@chlee1001/react-native-code-push";
1515

1616
class App extends Component<{}> {
1717
constructor() {
@@ -86,7 +86,7 @@ class App extends Component<{}> {
8686
this.codePushDownloadDidProgress.bind(this)
8787
);
8888
}
89-
89+
9090
restartApp() {
9191
CodePush.restartApp();
9292
}

Examples/CodePushDemoAppCpp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {
1212
"react": "^17.0.2",
1313
"react-native": "^0.68.5",
14-
"react-native-code-push": "^8.1.0",
14+
"@chlee1001/react-native-code-push": "^8.1.0",
1515
"react-native-windows": "^1.0.0"
1616
},
1717
"resolutions": {

Examples/CodePushDemoAppNewArch/android/app/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,5 @@ dependencies {
117117
implementation jscFlavor
118118
}
119119
}
120+
121+
apply from: "../../node_modules/@chlee1001/react-native-code-push/android/codepush.gradle"

Examples/CodePushDemoAppNewArch/android/app/src/main/java/com/codepushdemoappnewarch/MainApplication.kt

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,35 +17,27 @@ import com.microsoft.codepush.react.CodePush
1717
@OptIn(UnstableReactNativeAPI::class)
1818
class MainApplication : Application(), ReactApplication {
1919

20+
val defaultPackageList by lazy {
21+
PackageList(this).packages.apply {
22+
// Packages that cannot be autolinked yet can be added manually here, for example:
23+
// add(MyReactNativePackage())
24+
}
25+
}
26+
2027
override val reactNativeHost: ReactNativeHost =
2128
object : DefaultReactNativeHost(this) {
22-
override fun getPackages(): List<ReactPackage> =
23-
PackageList(this).packages.apply {
24-
// Packages that cannot be autolinked yet can be added manually here, for example:
25-
// add(MyReactNativePackage())
26-
}
29+
override fun getPackages(): List<ReactPackage> = defaultPackageList
2730

2831
override fun getJSMainModuleName(): String = "index"
2932

3033
override fun getUseDeveloperSupport(): Boolean = BuildConfig.DEBUG
34+
override fun getJSBundleFile(): String = CodePush.getJSBundleFile()
3135

3236
override val isNewArchEnabled: Boolean = BuildConfig.IS_NEW_ARCHITECTURE_ENABLED
3337
override val isHermesEnabled: Boolean = BuildConfig.IS_HERMES_ENABLED
3438
}
3539

36-
override val reactHost: ReactHost
37-
get() = getDefaultReactHost(
38-
applicationContext,
39-
PackageList(this).packages.apply {
40-
// Packages that cannot be autolinked yet can be added manually here, for example:
41-
// add(MyReactNativePackage())
42-
},
43-
jsMainModulePath = "index",
44-
jsBundleAssetPath = "index.android.bundle",
45-
jsBundleFilePath = CodePush.getJSBundleFile(),
46-
isHermesEnabled = BuildConfig.IS_HERMES_ENABLED,
47-
useDevSupport = BuildConfig.DEBUG,
48-
)
40+
override val reactHost: ReactHost get() = getDefaultReactHost(this, reactNativeHost)
4941

5042
override fun onCreate() {
5143
super.onCreate()

Examples/CodePushDemoAppNewArch/android/settings.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@ pluginManagement { includeBuild("../node_modules/@react-native/gradle-plugin") }
22
plugins { id("com.facebook.react.settings") }
33
extensions.configure(com.facebook.react.ReactSettingsExtension){ ex -> ex.autolinkLibrariesFromCommand() }
44
rootProject.name = 'CodePushDemoAppNewArch'
5-
include ':app', ':react-native-code-push'
6-
project(':react-native-code-push').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-code-push/android/app')
5+
include ':app'
76
includeBuild('../node_modules/@react-native/gradle-plugin')

0 commit comments

Comments
 (0)