Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
This repository was archived by the owner on May 20, 2025. It is now read-only.

Installation guide for Android is outdated #2325

@andrefangeloni

Description

@andrefangeloni

On step 3, the orientation is update the method getJSBundleFile() on MainApplication.java:

public class MainApplication extends Application implements ReactApplication {

    private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
        ...

        // Override the getJSBundleFile method in order to let
        // the CodePush runtime determine where to get the JS
        // bundle location from on each app start
        @Override
        protected String getJSBundleFile() {
            return CodePush.getJSBundleFile();
        }
    };
}

But on version 0.69 there is no getJSBundleFile(), it was replaced by getJSMainModuleName()

@Override
protected String getJSMainModuleName() {
   return "index";
}

How can I proceed with the configuration?
Thanks in advance

Environment

  • react-native-code-push version: 7.0.5
  • react-native version: 0.69.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions