Skip to content

Commit

Permalink
Merge pull request #402 from bozaigao/master
Browse files Browse the repository at this point in the history
feat: support for new architecture
  • Loading branch information
sunnylqm authored Feb 20, 2023
2 parents 65a332b + f8115c3 commit 5587919
Show file tree
Hide file tree
Showing 33 changed files with 985 additions and 224 deletions.
1 change: 1 addition & 0 deletions Example/testHotUpdate/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ios/.xcode.env.local

# Android/IntelliJ
#
release/
build/
.idea
.gradle
Expand Down
2 changes: 1 addition & 1 deletion Example/testHotUpdate/.ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.6
3.1.1
3 changes: 3 additions & 0 deletions Example/testHotUpdate/.update
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoidXNlciIsInVpZCI6OTQ3NywiZXhwIjoxNjc5MjczODYwOTgzLCJpYXQiOjE2NzY2ODE4NjB9.RtoiYnN_2hJ6-aRsx6JkRWil0-RxkdpL7yD7koAky8E"
}
4 changes: 2 additions & 2 deletions Example/testHotUpdate/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ PLATFORMS
ruby

DEPENDENCIES
cocoapods (~> 1.11, >= 1.11.2)
cocoapods (~> 1.11, >= 1.11.3)

RUBY VERSION
ruby 2.7.4p191
ruby 3.1.1p18

BUNDLED WITH
2.2.27
55 changes: 0 additions & 55 deletions Example/testHotUpdate/android/app/_BUCK

This file was deleted.

2 changes: 1 addition & 1 deletion Example/testHotUpdate/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,4 @@ dependencies {
}
}

apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
apply from: file("../../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesAppBuildGradle(project)
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ public void run() {
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@
import com.facebook.react.defaults.DefaultReactNativeHost;
import com.facebook.soloader.SoLoader;
import java.util.List;

import cn.reactnative.modules.update.UpdateContext;

public class MainApplication extends Application implements ReactApplication {

private final ReactNativeHost mReactNativeHost =
new DefaultReactNativeHost(this) {
@Override
protected String getJSBundleFile() {
return UpdateContext.getBundleUrl(MainApplication.this);
}

@Override
protected String getJSBundleFile() {
return UpdateContext.getBundleUrl(MainApplication.this);
}
@Override
public boolean getUseDeveloperSupport() {
return BuildConfig.DEBUG;
Expand Down Expand Up @@ -64,4 +65,4 @@ public void onCreate() {
}
ReactNativeFlipper.initializeFlipper(this, getReactNativeHost().getReactInstanceManager());
}
}
}
2 changes: 1 addition & 1 deletion Example/testHotUpdate/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ buildscript {
classpath("com.android.tools.build:gradle:7.3.1")
classpath("com.facebook.react:react-native-gradle-plugin")
}
}
}
Binary file modified Example/testHotUpdate/android/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 2 additions & 1 deletion Example/testHotUpdate/ios/.xcode.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
# used when running script phases inside Xcode.
# To customize your local environment, you can create an `.xcode.env.local`
# file that is not versioned.

# NODE_BINARY variable contains the PATH to the node executable.
#
# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
# . "$(brew --prefix nvm)/nvm.sh" --no-use
export NODE_BINARY=$(command -v node)
export NODE_BINARY=$(command -v node)
2 changes: 1 addition & 1 deletion Example/testHotUpdate/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ target 'testHotupdate' do
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
end
end
end
Loading

0 comments on commit 5587919

Please sign in to comment.