-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find bootstrap.js file in platforms/android/assets/app #95
Comments
Hi, indeed from v0.10.0 NativeScript supports package.json and index.js in addition to bootstrap.js for bootstraping an application. Check it out here |
So I'm guessing the entry point for the application would be the file specified as main in package.json. In that case, for the hello world app here, where is the code that would normally go in bootstrap.js? |
Yep, the package.json will reference the startup js file as "main" The code from the bootstrap.js will be in either index.js or the js file which is referenced inside the package.json as main |
I want to write a nativescript android application without using NSM. I want to work only with the Java APIs for android. Is this possible? I tried following these instructions to no avail. Also, I would like to use the nativescript cli only, not the android sdk tools. |
This comment was marked as abuse.
This comment was marked as abuse.
I guess NSM stands for NativeScript modules. You definitely can use {N} to write android apps without the platform UI abstractions. For example take a look at our watch demo here |
Okay so what was wrong was the bootstrap.js code on this page: compare the class extension code to this one: I'm guessing the extension syntax was changed to use the global __extends function at some point. Could someone confirm this? Apart from that the instructions from the page worked fine. It builds fine with gradle using the android sdk too so now I have an option to use pure android tools for android only projects :) Also, I was would appreciate some information on the current status and plans about typescript syntax support for extending native types. |
You can extend native types with typescript. Check for example how we extend the android.support.v4.view.ViewPager class The only requirement is that you have a constructor returning __native(this). We have plans for improving this in our docs here |
Thanks for your help everybody :) |
this page talks about a bootstrap.js file in platforms/android/assets/app. But when I build the demo app using tns create this file is nowhere to be found. Has something changed in the bootstrap mechanism?
The text was updated successfully, but these errors were encountered: