├── AndroidStudioProjects └── HelloWorld │ ├── .gitignore │ ├── .idea │ ├── .name │ ├── compiler.xml │ ├── copyright │ │ └── profiles_settings.xml │ ├── encodings.xml │ ├── gradle.xml │ ├── misc.xml │ ├── modules.xml │ ├── runConfigurations.xml │ └── vcs.xml │ ├── HelloWorld.iml │ ├── app │ ├── .gitignore │ ├── app.iml │ ├── build.gradle │ ├── libs │ │ ├── nativescript.jar │ │ └── widgets.jar │ ├── proguard-rules.pro │ └── src │ │ ├── androidTest │ │ └── java │ │ │ └── com │ │ │ └── example │ │ │ └── root │ │ │ └── helloworld │ │ │ └── ApplicationTest.java │ │ ├── main │ │ ├── AndroidManifest.xml │ │ ├── assets │ │ │ ├── app │ │ │ │ └── bootstrap.js │ │ │ ├── internal │ │ │ │ └── prepareExtend.js │ │ │ └── metadata │ │ │ │ ├── treeNodeStream.dat │ │ │ │ ├── treeStringsStream.dat │ │ │ │ └── treeValueStream.dat │ │ ├── java │ │ │ └── com │ │ │ │ └── example │ │ │ │ └── root │ │ │ │ └── helloworld │ │ │ │ └── MainActivity.java │ │ ├── jniLibs │ │ │ ├── armeabi-v7a │ │ │ │ ├── libAssetExtractor.so │ │ │ │ └── libNativeScript.so │ │ │ └── x86 │ │ │ │ ├── libAssetExtractor.so │ │ │ │ └── libNativeScript.so │ │ └── res │ │ │ ├── layout │ │ │ ├── activity_main.xml │ │ │ └── content_main.xml │ │ │ ├── menu │ │ │ └── menu_main.xml │ │ │ ├── mipmap-hdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-mdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── mipmap-xxxhdpi │ │ │ └── ic_launcher.png │ │ │ ├── values-v21 │ │ │ └── styles.xml │ │ │ ├── values-w820dp │ │ │ └── dimens.xml │ │ │ └── values │ │ │ ├── colors.xml │ │ │ ├── dimens.xml │ │ │ ├── strings.xml │ │ │ └── styles.xml │ │ └── test │ │ └── java │ │ └── com │ │ └── example │ │ └── root │ │ └── helloworld │ │ └── ExampleUnitTest.java │ ├── build.gradle │ ├── gradle.properties │ ├── gradle │ └── wrapper │ │ ├── gradle-wrapper.jar │ │ └── gradle-wrapper.properties │ ├── gradlew │ ├── gradlew.bat │ ├── local.properties │ └── settings.gradle ├── LICENSE ├── Readme.md ├── circle.yml ├── hello ├── app │ ├── App.hs │ ├── App_Resources │ │ ├── Android │ │ │ ├── drawable-hdpi │ │ │ │ └── icon.png │ │ │ ├── drawable-ldpi │ │ │ │ └── icon.png │ │ │ ├── drawable-mdpi │ │ │ │ └── icon.png │ │ │ └── drawable-nodpi │ │ │ │ └── splashscreen.9.png │ │ └── iOS │ │ │ ├── Default-568h@2x.png │ │ │ ├── Default-Landscape.png │ │ │ ├── Default-Landscape@2x.png │ │ │ ├── Default-Portrait.png │ │ │ ├── Default-Portrait@2x.png │ │ │ ├── Default.png │ │ │ ├── Default@2x.png │ │ │ ├── Icon-Small-50.png │ │ │ ├── Icon-Small-50@2x.png │ │ │ ├── Icon-Small.png │ │ │ ├── Icon-Small@2x.png │ │ │ ├── icon-40.png │ │ │ ├── icon-40@2x.png │ │ │ ├── icon-60.png │ │ │ ├── icon-60@2x.png │ │ │ ├── icon-72.png │ │ │ ├── icon-72@2x.png │ │ │ ├── icon-76.png │ │ │ ├── icon-76@2x.png │ │ │ ├── icon.png │ │ │ └── icon@2x.png │ ├── LICENSE │ ├── app.css │ ├── app.js │ ├── main-page.js │ ├── main-page.xml │ ├── main-view-model.js │ └── package.json ├── node_modules │ └── tns-core-modules │ │ ├── LICENSE │ │ ├── application-settings │ │ ├── application-settings-common.js │ │ ├── application-settings.android.js │ │ ├── application-settings.ios.js │ │ └── package.json │ │ ├── application │ │ ├── application-common.js │ │ ├── application.android.js │ │ ├── application.ios.js │ │ └── package.json │ │ ├── camera │ │ ├── camera-common.js │ │ ├── camera.android.js │ │ ├── camera.ios.js │ │ └── package.json │ │ ├── color │ │ ├── color-common.js │ │ ├── color.android.js │ │ ├── color.ios.js │ │ ├── known-colors.js │ │ └── package.json │ │ ├── connectivity │ │ ├── connectivity-common.js │ │ ├── connectivity.android.js │ │ ├── connectivity.ios.js │ │ └── package.json │ │ ├── console │ │ ├── console.js │ │ └── package.json │ │ ├── css-value │ │ ├── package.json │ │ └── reworkcss-value.js │ │ ├── css │ │ ├── package.json │ │ └── reworkcss.js │ │ ├── data │ │ ├── observable-array │ │ │ ├── observable-array.js │ │ │ └── package.json │ │ ├── observable │ │ │ ├── observable.js │ │ │ └── package.json │ │ └── virtual-array │ │ │ ├── package.json │ │ │ └── virtual-array.js │ │ ├── fetch │ │ ├── fetch.js │ │ └── package.json │ │ ├── file-system │ │ ├── file-name-resolver.js │ │ ├── file-system-access.android.js │ │ ├── file-system-access.ios.js │ │ ├── file-system.js │ │ └── package.json │ │ ├── fps-meter │ │ ├── fps-meter.js │ │ ├── fps-native.android.js │ │ ├── fps-native.ios.js │ │ └── package.json │ │ ├── globals │ │ ├── globals.js │ │ └── package.json │ │ ├── http │ │ ├── http-request.android.js │ │ ├── http-request.ios.js │ │ ├── http.js │ │ └── package.json │ │ ├── image-source │ │ ├── image-source-common.js │ │ ├── image-source.android.js │ │ ├── image-source.ios.js │ │ └── package.json │ │ ├── js-libs │ │ ├── easysax │ │ │ ├── easysax.js │ │ │ └── package.json │ │ ├── esprima │ │ │ ├── esprima.js │ │ │ └── package.json │ │ └── polymer-expressions │ │ │ ├── package.json │ │ │ ├── path-parser.js │ │ │ └── polymer-expressions.js │ │ ├── location │ │ ├── location-common.js │ │ ├── location.android.js │ │ ├── location.ios.js │ │ └── package.json │ │ ├── package.json │ │ ├── platform │ │ ├── package.json │ │ ├── platform.android.js │ │ └── platform.ios.js │ │ ├── text │ │ ├── formatted-string-common.js │ │ ├── formatted-string.android.js │ │ ├── formatted-string.ios.js │ │ ├── package.json │ │ ├── span-common.js │ │ ├── span.android.js │ │ ├── span.ios.js │ │ ├── text.android.js │ │ └── text.ios.js │ │ ├── timer │ │ ├── package.json │ │ ├── timer.android.js │ │ └── timer.ios.js │ │ ├── trace │ │ ├── package.json │ │ └── trace.js │ │ ├── ui │ │ ├── action-bar │ │ │ ├── action-bar-common.js │ │ │ ├── action-bar.android.js │ │ │ ├── action-bar.ios.js │ │ │ └── package.json │ │ ├── activity-indicator │ │ │ ├── activity-indicator-common.js │ │ │ ├── activity-indicator.android.js │ │ │ ├── activity-indicator.ios.js │ │ │ └── package.json │ │ ├── animation │ │ │ ├── animation-common.js │ │ │ ├── animation.android.js │ │ │ ├── animation.ios.js │ │ │ └── package.json │ │ ├── border │ │ │ ├── border.js │ │ │ └── package.json │ │ ├── builder │ │ │ ├── binding-builder.js │ │ │ ├── builder.js │ │ │ ├── component-builder.js │ │ │ ├── package.json │ │ │ ├── special-properties.js │ │ │ └── template-builder.js │ │ ├── button │ │ │ ├── button-common.js │ │ │ ├── button.android.js │ │ │ ├── button.ios.js │ │ │ └── package.json │ │ ├── content-view │ │ │ ├── content-view.js │ │ │ └── package.json │ │ ├── core │ │ │ ├── bindable.js │ │ │ ├── control-state-change.ios.js │ │ │ ├── dependency-observable.js │ │ │ ├── proxy.js │ │ │ ├── view-common.js │ │ │ ├── view.android.js │ │ │ ├── view.ios.js │ │ │ └── weak-event-listener.js │ │ ├── date-picker │ │ │ ├── date-picker-common.js │ │ │ ├── date-picker.android.js │ │ │ ├── date-picker.ios.js │ │ │ └── package.json │ │ ├── dialogs │ │ │ ├── dialogs-common.js │ │ │ ├── dialogs.android.js │ │ │ ├── dialogs.ios.js │ │ │ └── package.json │ │ ├── editable-text-base │ │ │ ├── editable-text-base-common.js │ │ │ ├── editable-text-base.android.js │ │ │ ├── editable-text-base.ios.js │ │ │ └── package.json │ │ ├── enums │ │ │ ├── enums.js │ │ │ └── package.json │ │ ├── frame │ │ │ ├── frame-common.js │ │ │ ├── frame.android.js │ │ │ ├── frame.ios.js │ │ │ └── package.json │ │ ├── gestures │ │ │ ├── gestures-common.js │ │ │ ├── gestures.android.js │ │ │ ├── gestures.ios.js │ │ │ └── package.json │ │ ├── html-view │ │ │ ├── html-view-common.js │ │ │ ├── html-view.android.js │ │ │ ├── html-view.ios.js │ │ │ └── package.json │ │ ├── image-cache │ │ │ ├── image-cache-common.js │ │ │ ├── image-cache.android.js │ │ │ ├── image-cache.ios.js │ │ │ └── package.json │ │ ├── image │ │ │ ├── image-common.js │ │ │ ├── image.android.js │ │ │ ├── image.ios.js │ │ │ └── package.json │ │ ├── label │ │ │ ├── label-common.js │ │ │ ├── label.android.js │ │ │ ├── label.ios.js │ │ │ └── package.json │ │ ├── layouts │ │ │ ├── absolute-layout │ │ │ │ ├── absolute-layout-common.js │ │ │ │ ├── absolute-layout.android.js │ │ │ │ ├── absolute-layout.ios.js │ │ │ │ └── package.json │ │ │ ├── dock-layout │ │ │ │ ├── dock-layout-common.js │ │ │ │ ├── dock-layout.android.js │ │ │ │ ├── dock-layout.ios.js │ │ │ │ └── package.json │ │ │ ├── grid-layout │ │ │ │ ├── grid-layout-common.js │ │ │ │ ├── grid-layout.android.js │ │ │ │ ├── grid-layout.ios.js │ │ │ │ └── package.json │ │ │ ├── layout-base.js │ │ │ ├── layout.android.js │ │ │ ├── layout.ios.js │ │ │ ├── stack-layout │ │ │ │ ├── package.json │ │ │ │ ├── stack-layout-common.js │ │ │ │ ├── stack-layout.android.js │ │ │ │ └── stack-layout.ios.js │ │ │ └── wrap-layout │ │ │ │ ├── package.json │ │ │ │ ├── wrap-layout-common.js │ │ │ │ ├── wrap-layout.android.js │ │ │ │ └── wrap-layout.ios.js │ │ ├── list-picker │ │ │ ├── list-picker-common.js │ │ │ ├── list-picker.android.js │ │ │ ├── list-picker.ios.js │ │ │ └── package.json │ │ ├── list-view │ │ │ ├── list-view-common.js │ │ │ ├── list-view.android.js │ │ │ ├── list-view.ios.js │ │ │ └── package.json │ │ ├── package.json │ │ ├── page │ │ │ ├── package.json │ │ │ ├── page-common.js │ │ │ ├── page.android.js │ │ │ └── page.ios.js │ │ ├── placeholder │ │ │ ├── package.json │ │ │ ├── placeholder-common.js │ │ │ ├── placeholder.android.js │ │ │ └── placeholder.ios.js │ │ ├── progress │ │ │ ├── package.json │ │ │ ├── progress-common.js │ │ │ ├── progress.android.js │ │ │ └── progress.ios.js │ │ ├── repeater │ │ │ ├── package.json │ │ │ └── repeater.js │ │ ├── scroll-view │ │ │ ├── package.json │ │ │ ├── scroll-view-common.js │ │ │ ├── scroll-view.android.js │ │ │ └── scroll-view.ios.js │ │ ├── search-bar │ │ │ ├── package.json │ │ │ ├── search-bar-common.js │ │ │ ├── search-bar.android.js │ │ │ └── search-bar.ios.js │ │ ├── segmented-bar │ │ │ ├── package.json │ │ │ ├── segmented-bar-common.js │ │ │ ├── segmented-bar.android.js │ │ │ └── segmented-bar.ios.js │ │ ├── slider │ │ │ ├── package.json │ │ │ ├── slider-common.js │ │ │ ├── slider.android.js │ │ │ └── slider.ios.js │ │ ├── styling │ │ │ ├── background-common.js │ │ │ ├── background.android.js │ │ │ ├── background.ios.js │ │ │ ├── converters.js │ │ │ ├── css-selector.js │ │ │ ├── font-common.js │ │ │ ├── font.android.js │ │ │ ├── font.ios.js │ │ │ ├── package.json │ │ │ ├── style-property.js │ │ │ ├── style-scope.js │ │ │ ├── style.js │ │ │ ├── stylers-common.js │ │ │ ├── stylers.android.js │ │ │ ├── stylers.ios.js │ │ │ ├── styling.js │ │ │ ├── visual-state-constants.js │ │ │ └── visual-state.js │ │ ├── switch │ │ │ ├── package.json │ │ │ ├── switch-common.js │ │ │ ├── switch.android.js │ │ │ └── switch.ios.js │ │ ├── tab-view │ │ │ ├── package.json │ │ │ ├── tab-view-common.js │ │ │ ├── tab-view.android.js │ │ │ └── tab-view.ios.js │ │ ├── text-base │ │ │ ├── package.json │ │ │ └── text-base.js │ │ ├── text-field │ │ │ ├── package.json │ │ │ ├── text-field-common.js │ │ │ ├── text-field.android.js │ │ │ └── text-field.ios.js │ │ ├── text-view │ │ │ ├── package.json │ │ │ ├── text-view-common.js │ │ │ ├── text-view.android.js │ │ │ └── text-view.ios.js │ │ ├── time-picker │ │ │ ├── package.json │ │ │ ├── time-picker-common.js │ │ │ ├── time-picker.android.js │ │ │ └── time-picker.ios.js │ │ ├── ui.js │ │ ├── utils.ios.js │ │ └── web-view │ │ │ ├── package.json │ │ │ ├── web-view-common.js │ │ │ ├── web-view.android.js │ │ │ └── web-view.ios.js │ │ ├── utils │ │ ├── module-merge.js │ │ ├── number-utils.js │ │ ├── types.js │ │ ├── utils-common.js │ │ ├── utils.android.js │ │ └── utils.ios.js │ │ ├── xhr │ │ ├── package.json │ │ └── xhr.js │ │ └── xml │ │ ├── package.json │ │ └── xml.js └── package.json ├── initialize-project-files.sh ├── new-project.diff └── tests └── hello.sh /AndroidStudioProjects/HelloWorld/.gitignore: -------------------------------------------------------------------------------- 1 | .gradle 2 | /.idea/workspace.xml 3 | /.idea/libraries 4 | .DS_Store 5 | /build 6 | /captures 7 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/.name: -------------------------------------------------------------------------------- 1 | HelloWorld -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 18 | 19 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 19 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/HelloWorld.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/build.gradle: -------------------------------------------------------------------------------- 1 | apply plugin: 'com.android.application' 2 | 3 | android { 4 | compileSdkVersion 22 5 | buildToolsVersion "23.0.1" 6 | 7 | defaultConfig { 8 | applicationId "com.example.root.helloworld" 9 | minSdkVersion 17 10 | targetSdkVersion 22 11 | versionCode 1 12 | versionName "1.0" 13 | } 14 | buildTypes { 15 | release { 16 | minifyEnabled false 17 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' 18 | } 19 | } 20 | } 21 | 22 | dependencies { 23 | compile fileTree(dir: 'libs', include: ['*.jar']) 24 | testCompile 'junit:junit:4.12' 25 | compile 'com.android.support:appcompat-v7:22.2.1' 26 | compile 'com.android.support:design:22.2.1' 27 | compile files('libs/nativescript.jar') 28 | } 29 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/libs/nativescript.jar: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/libs/nativescript.jar -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/libs/widgets.jar: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/libs/widgets.jar -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in /usr/local/android-sdk-linux/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/androidTest/java/com/example/root/helloworld/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.example.root.helloworld; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/assets/app/bootstrap.js: -------------------------------------------------------------------------------- 1 | /* 2 | // declare the extended NativeScriptActivity functionality 3 | var extendsObject = { 4 | onCreate: function(savedState){ 5 | // call the base NativeScriptActivity.onCreate method 6 | // the "this" variable points to a NativeScriptActivity instance 7 | this.super.onCreate(savedState); 8 | 9 | // create a button and set it as the main content 10 | var button = new android.widget.Button(this); 11 | button.setText("Hello World"); 12 | 13 | this.setContentView(button); 14 | } 15 | } 16 | 17 | // pass the extends object to create a new NativeScriptActivity instance 18 | var mainActivity = com.tns.NativeScriptActivity.extends(extendsObject); 19 | */ 20 | 21 | function log(message) { 22 | var arrayToLog = []; 23 | if (message.length > 4000) { 24 | var i; 25 | for (i = 0; i * 4000 < message.length; i++) { 26 | arrayToLog.push(message.substr((i * 4000), 4000)); 27 | } 28 | } 29 | else { 30 | arrayToLog.push(message); 31 | } 32 | for (i = 0; i < arrayToLog.length; i++) { 33 | android.util.Log.w("TNS.JS", arrayToLog[i]); 34 | } 35 | } 36 | 37 | /* 38 | // pass the extends object to create a new NativeScriptActivity instance 39 | var mainActivity = (function(_super) { 40 | log("Go!"); 41 | __extends(mainActivity, _super); 42 | function mainActivity() { log("Created!!!"); _super.call(this); } 43 | mainActivity.prototype.onCreate = function(savedState){ 44 | log("Oncreate"); 45 | // call the base NativeScriptActivity.onCreate method 46 | // the "this" variable points to a NativeScriptActivity instance 47 | this.super.onCreate(savedState); 48 | 49 | // create a button and set it as the main content 50 | var button = new android.widget.Button(this); 51 | button.setText("Hello World"); 52 | 53 | this.setContentView(button); 54 | }; 55 | log("Return"); 56 | return mainActivity; 57 | })(com.tns.NativeScriptActivity); 58 | */ 59 | 60 | var mainActivity = new com.tns.NativeScriptActivity(); 61 | mainActivity.onCreate = function(savedState){ 62 | log("Oncreate"); 63 | // call the base NativeScriptActivity.onCreate method 64 | // the "this" variable points to a NativeScriptActivity instance 65 | this.super.onCreate(savedState); 66 | 67 | // create a button and set it as the main content 68 | var button = new android.widget.Button(this); 69 | button.setText("Hello World"); 70 | 71 | this.setContentView(button); 72 | }; 73 | 74 | log("HEllo") 75 | 76 | var applicationInitObject = { 77 | getActivity: function(intent) { 78 | // this method is called whenever a new instance of NativeScriptActivity is about to be created 79 | log("Activity"); 80 | return mainActivity; 81 | }, 82 | onCreate: function() { 83 | log("First method called"); 84 | // This is the first method called. Called from the android.app.Application.onCreate method. 85 | } 86 | } 87 | 88 | // The NativeScriptRuntime exposes the app object within the global context 89 | app.init(applicationInitObject); -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/assets/metadata/treeNodeStream.dat: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/assets/metadata/treeNodeStream.dat -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/assets/metadata/treeStringsStream.dat: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/assets/metadata/treeStringsStream.dat -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/assets/metadata/treeValueStream.dat: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/assets/metadata/treeValueStream.dat -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/java/com/example/root/helloworld/MainActivity.java: -------------------------------------------------------------------------------- 1 | package com.example.root.helloworld; 2 | 3 | import android.os.Bundle; 4 | import android.support.design.widget.FloatingActionButton; 5 | import android.support.design.widget.Snackbar; 6 | import android.support.v7.app.AppCompatActivity; 7 | import android.support.v7.widget.Toolbar; 8 | import android.view.View; 9 | import android.view.Menu; 10 | import android.view.MenuItem; 11 | 12 | public class MainActivity extends AppCompatActivity { 13 | 14 | @Override 15 | protected void onCreate(Bundle savedInstanceState) { 16 | super.onCreate(savedInstanceState); 17 | setContentView(R.layout.activity_main); 18 | Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); 19 | setSupportActionBar(toolbar); 20 | 21 | FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); 22 | fab.setOnClickListener(new View.OnClickListener() { 23 | @Override 24 | public void onClick(View view) { 25 | Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) 26 | .setAction("Action", null).show(); 27 | } 28 | }); 29 | } 30 | 31 | @Override 32 | public boolean onCreateOptionsMenu(Menu menu) { 33 | // Inflate the menu; this adds items to the action bar if it is present. 34 | getMenuInflater().inflate(R.menu.menu_main, menu); 35 | return true; 36 | } 37 | 38 | @Override 39 | public boolean onOptionsItemSelected(MenuItem item) { 40 | // Handle action bar item clicks here. The action bar will 41 | // automatically handle clicks on the Home/Up button, so long 42 | // as you specify a parent activity in AndroidManifest.xml. 43 | int id = item.getItemId(); 44 | 45 | //noinspection SimplifiableIfStatement 46 | if (id == R.id.action_settings) { 47 | return true; 48 | } 49 | 50 | return super.onOptionsItemSelected(item); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/jniLibs/armeabi-v7a/libAssetExtractor.so: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/jniLibs/armeabi-v7a/libAssetExtractor.so -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/jniLibs/armeabi-v7a/libNativeScript.so: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/jniLibs/armeabi-v7a/libNativeScript.so -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/jniLibs/x86/libAssetExtractor.so: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/jniLibs/x86/libAssetExtractor.so -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/jniLibs/x86/libNativeScript.so: -------------------------------------------------------------------------------- 1 | ../../nativescript-android/app/src/main/jniLibs/x86/libNativeScript.so -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 8 | 9 | 11 | 12 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/layout/content_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 14 | 15 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/menu/menu_main.xml: -------------------------------------------------------------------------------- 1 | 4 | 6 | 7 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/haskell-mobile/1719e2846b072da3eb4995788c24edf974e47bef/AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/haskell-mobile/1719e2846b072da3eb4995788c24edf974e47bef/AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/haskell-mobile/1719e2846b072da3eb4995788c24edf974e47bef/AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/haskell-mobile/1719e2846b072da3eb4995788c24edf974e47bef/AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abarbu/haskell-mobile/1719e2846b072da3eb4995788c24edf974e47bef/AndroidStudioProjects/HelloWorld/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values-v21/styles.xml: -------------------------------------------------------------------------------- 1 | > 2 | 8 | 9 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 16dp 6 | 7 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | HelloWorld 3 | Settings 4 | 5 | -------------------------------------------------------------------------------- /AndroidStudioProjects/HelloWorld/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 14 |