Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support for new architecture #402

Merged
merged 2 commits into from
Feb 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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() {
sunnylqm marked this conversation as resolved.
Show resolved Hide resolved
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