Skip to content

Conversation

slavchev
Copy link

…he end of Application.onCreate() method

@slavchev
Copy link
Author

ping @NativeScript/android-runtime

@ns-bot
Copy link

ns-bot commented Jun 27, 2016

💚

public void onCreate() {
super.onCreate();
new RuntimeHelper(this).initRuntime();
com.tns.Runtime runtime = new RuntimeHelper(this).initRuntime();
Copy link
Contributor

Choose a reason for hiding this comment

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

can we do this like this
com.tns.Runtime runtime = new RuntimeHelper(this);
runtime.initRuntime()

that line look very strange to me..

Other way I would do it is to make this a static method so

com.tns.Runtime runtime = RuntimeHelper.initRuntime(this);

Copy link
Author

Choose a reason for hiding this comment

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

addressed with ffc5a2e

@ns-bot
Copy link

ns-bot commented Jun 27, 2016

💚

@slavchev
Copy link
Author

ping @galexandrov this change will affect AppBuilder related things (e.g. {N} Companion App)

@atanasovg
Copy link
Contributor

👍 This makes the flow more what the user would expect.

@slavchev slavchev merged commit 8024e44 into release Jun 27, 2016
@slavchev slavchev deleted the slavchev/update-project-template branch July 15, 2016 08:18
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.

4 participants