Skip to content

index.android.js and index.ios.js should be unified also in build.gradle and iOS build file #16594

@giacomocerquone

Description

@giacomocerquone

Is this a bug report?

Yes

Have you read the Contributing Guidelines?

Yes

Environment

Environment:
OS: Windows 10
Node: 8.5.0
Yarn: 1.2.1
npm: 5.5.1
Watchman: Not Found
Xcode: N/A
Android Studio: Version 2.3.0.0 AI-162.4069837

Packages: (wanted => installed)
react: 16.0.0-beta.5 => 16.0.0-beta.5
react-native: 0.49.5 => 0.49.5

Steps to Reproduce

(Write your steps here:)

  1. react-native init
  2. cd android && ./gradlew assembleRelease

Expected Behavior

Assemble release should go fine but...

Actual Behavior

I receive: Cannot find entry file index.android.js in any of the roots:

And this is because (in case of android) after the upgrade with react-native-git-upgrade, the build gradle file didn't change and the entry file is specified as below:

 *   // the entry file for bundle generation
 *   entryFile: "index.android.js",

Metadata

Metadata

Assignees

No one assigned

    Labels

    Platform: AndroidAndroid applications.Platform: iOSiOS applications.Ran CommandsOne of our bots successfully processed a command.Resolution: LockedThis issue was locked by the bot.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions