Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
yh_vendor
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
于良
9 years ago
Commit
35c8379b057c6c0b32c5ced3ee0d22bb43f4c68a
1 parent
12ab5429
使用DEBUG宏加载不同的jsbundle review by yewanwan
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
ios/YH_Vendor/AppDelegate.m
ios/YH_Vendor/AppDelegate.m
View file @
35c8379
...
...
@@ -30,7 +30,7 @@
* `inet` value under `en0:`) and make sure your computer and iOS device are
* on the same Wi-Fi network.
*/
#if DEBUG
jsCodeLocation
=
[
NSURL
URLWithString
:
@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"
];
/**
...
...
@@ -40,8 +40,9 @@
* running the project on an actual device or running the project on the
* simulator in the "Release" build configuration.
*/
// jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#else
jsCodeLocation
=
[[
NSBundle
mainBundle
]
URLForResource
:
@"main"
withExtension
:
@"jsbundle"
];
#endif
RCTRootView
*
rootView
=
[[
RCTRootView
alloc
]
initWithBundleURL
:
jsCodeLocation
moduleName
:
@"YH_Vendor"
...
...
Please
register
or
login
to post a comment