Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Added support for Build Multiple Versions of React Native app - #766

Merged
Artem Egorov (itoys) merged 9 commits into
masterfrom
feature/multi-versions-build
Aug 10, 2018
Merged

Artem Egorov (itoys) merged 9 commits into
masterfrom
feature/multi-versions-build

Conversation

@itoys

Copy link
Copy Markdown
Contributor

Resolve #764

Comment thread src/extension/ios/plistBuddy.ts Outdated
`${projectFile.projectName}.app`, "Info.plist");
public getBundleId(projectRoot: string, simulator: boolean = true, configuration: string = "Debug", productName?: string): Q.Promise<string> {
const productsFolder = path.join(projectRoot, "build", "Build", "Products");
const configutationFolder = path.join(productsFolder, `${configuration}${simulator ? "-iphonesimulator" : "-iphoneos"}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to be that there is a typo: configutationFolder.

Comment thread src/extension/ios/iOSPlatform.ts Outdated
super(runOptions, platformDeps);

const configurationIdx = this.runArguments.indexOf("--configuration");
const configuration = configurationIdx > -1 ? this.runArguments[configurationIdx + 1] : "";

@sregg Simon Reggiani (sregg) Aug 8, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure configurationIdx + 1 is what you wanted here?. Seems like configurationIdx is the right index...

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried it and got this:

Could not debug. Could not found executable in /Users/simonreggiani/app/ios/build/Build/Products/-iphonesimulator

with this launch.json:

{
  "name": "Debug iOS - iPhone X - Dev",
  "program": "${workspaceRoot}/.vscode/launchReactNative.js",
  "type": "reactnative",
  "request": "launch",
  "platform": "ios",
  "sourceMaps": true,
  "outDir": "${workspaceRoot}/.vscode/.react",
  "runArguments": [
    "--simulator=iPhone X",
    "--scheme=app-dev",
    "--configuration=Dev.Debug"
  ]
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for testing!
Actually we can fill runArguments like :

"runArguments": [
    "--simulator", "iPhone X",
    "--scheme", "app-dev",
    "--configuration", "Dev.Debug"
  ]

I'll add support for both cases!

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #766 into master will decrease coverage by 0.06%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #766      +/-   ##
==========================================
- Coverage   14.39%   14.32%   -0.07%     
==========================================
  Files          63       62       -1     
  Lines        3259     3273      +14     
  Branches      416      427      +11     
==========================================
  Hits          469      469              
- Misses       2790     2804      +14
Impacted Files Coverage Δ
src/extension/windows/wpfPlatform.ts 0% <0%> (ø) ⬆️
src/extension/generalMobilePlatform.ts 0% <0%> (ø) ⬆️
src/extension/exponent/exponentPlatform.ts 0% <0%> (ø) ⬆️
src/extension/android/androidPlatform.ts 0% <0%> (ø) ⬆️
src/extension/extensionServer.ts 2.79% <0%> (-0.04%) ⬇️
src/extension/ios/simulatorPlist.ts 0% <0%> (ø) ⬆️
src/extension/ios/iOSDebugModeManager.ts 0% <0%> (ø) ⬆️
src/extension/windows/windowsPlatform.ts 0% <0%> (ø) ⬆️
src/extension/ios/iOSPlatform.ts 0% <0%> (ø) ⬆️
src/extension/ios/plistBuddy.ts 0% <0%> (ø) ⬆️

@itoys
Artem Egorov (itoys) merged commit 3e313f6 into master Aug 10, 2018
@itoys
Artem Egorov (itoys) deleted the feature/multi-versions-build branch August 10, 2018 11:38
Ruslan Bikkinin (ruslan-bikkinin) added a commit to ruslan-bikkinin/vscode-react-native that referenced this pull request Aug 28, 2018
Ruslan Bikkinin (ruslan-bikkinin) added a commit that referenced this pull request Aug 28, 2018
* Revert "FIx incorrect runArguments assignment (#779)"

This reverts commit b9fbf69.

* Revert "Update changelog (#775)"

This reverts commit 5517641.

* Revert "Remove code push images (#771)"

This reverts commit b34bce9.

* Revert "Added support for Build Multiple Versions of React Native app (#766)"

This reverts commit 3e313f6.

* Revert "Update debugging.md (#765)"

This reverts commit fcfec28.

* Revert "fix typo (#763)"

This reverts commit 4dd439f.

* merge

* Revert "Use fork instead of spawn for AppWorker (#760)"

This reverts commit 2df05fa.

* Revert "Added some logging for debug (#759)"

This reverts commit 46e2461.

* Revert "[Android] Add reading SDK location from local.properties (#754)"

This reverts commit 43e1a99.

* Revert "Fixed error while stop expo packager (#753)"

This reverts commit 77b86bf.
@freakinruben

Copy link
Copy Markdown

Artem Egorov (@itoys) I can't figure out how I can specify the productName in the launch.json, should this be passed on in the runArguments?

@freakinruben

Copy link
Copy Markdown

I see that it's reverted for some reason in 0.16.6 and added again in master (unreleased). That's probably why I can't get it to work.. Ruslan Bikkinin (@ruslan-bikkinin) any chance this can be released again?

@ruslan-bikkinin

Copy link
Copy Markdown
Contributor

Hi Ruben (@freakinruben), we are going to release new version at the beginning of the next week. I'll keep you posted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants