refact:change field name from scheme to source
This commit is contained in:
@@ -15,8 +15,8 @@ public class MainActivity extends AppCompatActivity {
|
||||
super.onCreate(savedInstanceState);
|
||||
setContentView(R.layout.activity_main);
|
||||
if (savedInstanceState == null) {
|
||||
String scheme = "assets://src/" + BUNDLE_NAME + ".js";
|
||||
getIntent().putExtra("scheme", scheme);
|
||||
String source = "assets://src/" + BUNDLE_NAME + ".js";
|
||||
getIntent().putExtra("source", scheme);
|
||||
getIntent().putExtra("alias", BUNDLE_NAME);
|
||||
this.getSupportFragmentManager().beginTransaction().add(R.id.root, new DoricFragment()).commit();
|
||||
}
|
||||
|
@@ -17,7 +17,7 @@ @implementation AppDelegate
|
||||
|
||||
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
|
||||
NSString *bundleName = @"__$__";
|
||||
DoricViewController *doricViewController = [[DoricViewController alloc] initWithScheme:[NSString stringWithFormat:@"assets://src/%@.js", bundleName]
|
||||
DoricViewController *doricViewController = [[DoricViewController alloc] initWithSource:[NSString stringWithFormat:@"assets://src/%@.js", bundleName]
|
||||
alias:bundleName
|
||||
extra:@""];
|
||||
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
|
||||
|
@@ -8,7 +8,7 @@ @implementation SceneDelegate
|
||||
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
|
||||
UIWindowScene *windowScene = (UIWindowScene *) scene;
|
||||
NSString *bundleName = @"__$__";
|
||||
DoricViewController *doricViewController = [[DoricViewController alloc] initWithScheme:[NSString stringWithFormat:@"assets://src/%@.js", bundleName]
|
||||
DoricViewController *doricViewController = [[DoricViewController alloc] initWithSource:[NSString stringWithFormat:@"assets://src/%@.js", bundleName]
|
||||
alias:bundleName
|
||||
extra:@""];
|
||||
doricViewController.view.backgroundColor = [UIColor whiteColor];
|
||||
|
Reference in New Issue
Block a user