Skip to content

Commit dd9b048

Browse files
committed
setup
1 parent f42073e commit dd9b048

File tree

9,350 files changed

+748867
-44
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

9,350 files changed

+748867
-44
lines changed

Diff for: .gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,9 @@ testem.log
2727
#System Files
2828
.DS_Store
2929
Thumbs.db
30+
31+
nativescript/app/app
32+
nativescript/hooks
33+
nativescript/node_modules
34+
src/app/**/*.js
35+
src/app/**/*.js.map

Diff for: .vscode/settings.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"**/.git": true,
5+
"**/.svn": true,
6+
"**/.DS_Store": true,
7+
"src/app/**/*.js": true,
8+
"nativescript/platforms": true
9+
}
10+
}

Diff for: README.md

+28

Diff for: angular-cli-build.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ module.exports = function(defaults) {
1111
'es6-shim/es6-shim.js',
1212
'reflect-metadata/*.js',
1313
'rxjs/**/*.js',
14-
'@angular/**/*.js'
14+
'@angular/**/*.js',
15+
'hammerjs/*.js'
1516
]
1617
});
1718
};

Diff for: nativescript/app/.npmignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
node_modules
2+
built
3+
tags
4+
typings
5+
.baseDir.ts
6+
.tscache
7+
8+
app/**/*.js
9+
app/**/*.map
10+
platforms
11+
lib
12+
13+
*.tgz
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="__PACKAGE__"
4+
android:versionCode="1"
5+
android:versionName="1.0">
6+
7+
<supports-screens
8+
android:smallScreens="true"
9+
android:normalScreens="true"
10+
android:largeScreens="true"
11+
android:xlargeScreens="true"/>
12+
13+
<uses-sdk
14+
android:minSdkVersion="17"
15+
android:targetSdkVersion="__APILEVEL__"/>
16+
17+
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
18+
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
19+
<uses-permission android:name="android.permission.INTERNET"/>
20+
21+
<application
22+
android:name="com.tns.NativeScriptApplication"
23+
android:allowBackup="true"
24+
android:icon="@drawable/icon"
25+
android:label="@string/app_name"
26+
android:theme="@style/AppTheme" >
27+
<activity
28+
android:name="com.tns.NativeScriptActivity"
29+
android:label="@string/title_activity_kimera"
30+
android:configChanges="keyboardHidden|orientation|screenSize">
31+
32+
<intent-filter>
33+
<action android:name="android.intent.action.MAIN" />
34+
35+
<category android:name="android.intent.category.LAUNCHER" />
36+
</intent-filter>
37+
</activity>
38+
<activity android:name="com.tns.ErrorReportActivity"/>
39+
</application>
40+
</manifest>

Diff for: nativescript/app/App_Resources/Android/app.gradle

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Add your native dependencies here:
2+
3+
// Uncomment to add recyclerview-v7 dependency
4+
//dependencies {
5+
// compile 'com.android.support:recyclerview-v7:+'
6+
//}
7+
8+
android {
9+
defaultConfig {
10+
generatedDensities = []
11+
}
12+
aaptOptions {
13+
additionalParameters "--no-version-vectors"
14+
}
15+
}
10.7 KB
6.03 KB
7.42 KB
62.2 KB
112 KB
180 KB
63.2 KB
123 KB
60.9 KB
187 KB
198 KB
59.5 KB
182 KB

Diff for: nativescript/app/App_Resources/iOS/Default.png

20.3 KB
61.4 KB

Diff for: nativescript/app/App_Resources/iOS/Icon-Small-50.png

30.7 KB
36.3 KB

Diff for: nativescript/app/App_Resources/iOS/Icon-Small.png

28.9 KB
31.4 KB

Diff for: nativescript/app/App_Resources/iOS/Info.plist

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>${PRODUCT_NAME}</string>
9+
<key>CFBundleExecutable</key>
10+
<string>${EXECUTABLE_NAME}</string>
11+
<key>CFBundleIconFile</key>
12+
<string>icon.png</string>
13+
<key>CFBundleIcons</key>
14+
<dict>
15+
<key>CFBundlePrimaryIcon</key>
16+
<dict>
17+
<key>CFBundleIconFiles</key>
18+
<array>
19+
<string>icon-40</string>
20+
<string>icon-60</string>
21+
<string>icon-72</string>
22+
<string>icon-76</string>
23+
<string>Icon-Small</string>
24+
<string>Icon-Small-50</string>
25+
</array>
26+
<key>UIPrerenderedIcon</key>
27+
<false/>
28+
</dict>
29+
</dict>
30+
<key>CFBundleInfoDictionaryVersion</key>
31+
<string>6.0</string>
32+
<key>CFBundleName</key>
33+
<string>${PRODUCT_NAME}</string>
34+
<key>CFBundlePackageType</key>
35+
<string>APPL</string>
36+
<key>CFBundleShortVersionString</key>
37+
<string>1.0</string>
38+
<key>CFBundleSignature</key>
39+
<string>????</string>
40+
<key>CFBundleVersion</key>
41+
<string>1.0</string>
42+
<key>LSRequiresIPhoneOS</key>
43+
<true/>
44+
<key>UILaunchStoryboardName</key>
45+
<string>LaunchScreen</string>
46+
<key>UIRequiresFullScreen</key>
47+
<true/>
48+
<key>UIRequiredDeviceCapabilities</key>
49+
<array>
50+
<string>armv7</string>
51+
</array>
52+
<key>UISupportedInterfaceOrientations</key>
53+
<array>
54+
<string>UIInterfaceOrientationPortrait</string>
55+
<string>UIInterfaceOrientationLandscapeLeft</string>
56+
<string>UIInterfaceOrientationLandscapeRight</string>
57+
</array>
58+
<key>UISupportedInterfaceOrientations~ipad</key>
59+
<array>
60+
<string>UIInterfaceOrientationPortrait</string>
61+
<string>UIInterfaceOrientationPortraitUpsideDown</string>
62+
<string>UIInterfaceOrientationLandscapeLeft</string>
63+
<string>UIInterfaceOrientationLandscapeRight</string>
64+
</array>
65+
</dict>
66+
</plist>

Diff for: nativescript/app/App_Resources/iOS/build.xcconfig

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
// You can add custom settings here
2+
// for example you can uncomment the following line to force distribution code signing
3+
// CODE_SIGN_IDENTITY = iPhone Distribution
4+
// ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
5+
// ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = Brand Assets;

Diff for: nativescript/app/App_Resources/iOS/icon-40.png

29.8 KB
33.8 KB

Diff for: nativescript/app/App_Resources/iOS/icon-60.png

31.8 KB
38.6 KB

Diff for: nativescript/app/App_Resources/iOS/icon-72.png

32.9 KB
41.2 KB

Diff for: nativescript/app/App_Resources/iOS/icon-76.png

33.4 KB
43.3 KB

Diff for: nativescript/app/App_Resources/iOS/icon.png

31.5 KB
37.7 KB

Diff for: nativescript/app/LICENSE

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Copyright (c) 2015, Telerik AD
2+
All rights reserved.
3+
4+
Redistribution and use in source and binary forms, with or without
5+
modification, are permitted provided that the following conditions are met:
6+
7+
1. Redistributions of source code must retain the above copyright notice, this
8+
list of conditions and the following disclaimer.
9+
10+
2. Redistributions in binary form must reproduce the above copyright notice,
11+
this list of conditions and the following disclaimer in the documentation
12+
and/or other materials provided with the distribution.
13+
14+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Diff for: nativescript/app/app.css

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
button, label, stack-layout {
2+
horizontal-align: center;
3+
}
4+
5+
button {
6+
font-size: 36;
7+
}
8+
9+
.title {
10+
font-size: 30;
11+
margin: 20;
12+
}
13+
14+
.message {
15+
font-size: 20;
16+
color: #284848;
17+
text-align: center;
18+
margin: 0 20;
19+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require("nativescript-angular/hooks/before-livesync");

Diff for: nativescript/app/main.js

+11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: nativescript/app/main.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: nativescript/app/main.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// this import should be first in order to load some required settings (like globals and reflect-metadata)
2+
import {nativeScriptBootstrap} from "nativescript-angular/application";
3+
import {NS_ROUTER_PROVIDERS, NS_ROUTER_DIRECTIVES} from "nativescript-angular/router";
4+
import {HTTP_PROVIDERS} from "@angular/http";
5+
import {MagicService} from "nativescript-ng2-magic";
6+
MagicService.ROUTER_DIRECTIVES = NS_ROUTER_DIRECTIVES;
7+
8+
// import your root component here
9+
import {AppComponent} from "./app/";
10+
11+
nativeScriptBootstrap(AppComponent, [NS_ROUTER_PROVIDERS, HTTP_PROVIDERS], { startPageActionBarHidden: false });

Diff for: nativescript/app/package.json

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"nativescript": {
3+
"id": "org.nativescript.helloworldng"
4+
},
5+
"name": "tns-template-hello-world-ng",
6+
"main": "main.js",
7+
"version": "2.0.3",
8+
"author": {
9+
"name": "Telerik",
10+
"email": "[email protected]"
11+
},
12+
"description": "Nativescript Angular Hello World template",
13+
"license": "BSD",
14+
"keywords": [
15+
"telerik",
16+
"mobile",
17+
"angular",
18+
"nativescript",
19+
"{N}",
20+
"tns",
21+
"appbuilder",
22+
"template"
23+
],
24+
"repository": {
25+
"type": "git",
26+
"url": "git://github.com/NativeScript/template-hello-world-ng.git"
27+
},
28+
"homepage": "https://github.com/NativeScript/template-hello-world-ng",
29+
"android": {
30+
"v8Flags": "--expose_gc"
31+
},
32+
"dependencies": {
33+
"@angular/common": "2.0.0-rc.1",
34+
"@angular/compiler": "2.0.0-rc.1",
35+
"@angular/core": "2.0.0-rc.1",
36+
"@angular/http": "2.0.0-rc.1",
37+
"@angular/platform-browser": "2.0.0-rc.1",
38+
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
39+
"@angular/platform-server": "2.0.0-rc.1",
40+
"@angular/router": "2.0.0-rc.1",
41+
"@angular/router-deprecated": "2.0.0-rc.1",
42+
"nativescript-angular": "0.1.1",
43+
"tns-core-modules": "^2.0.0"
44+
},
45+
"devDependencies": {
46+
"nativescript-dev-typescript": "^0.3.2"
47+
},
48+
"gitHead": "2206d64e5e60191ff43a7d8f03d8aeded4ad3302",
49+
"bugs": {
50+
"url": "https://github.com/NativeScript/template-hello-world-ng/issues"
51+
},
52+
"readme": "ERROR: No README data found!",
53+
54+
"_shasum": "8fd2358289acbb78cc510f8fb22d44cdae68d1c1",
55+
"_from": "git+https://github.com/NativeScript/template-hello-world-ng.git",
56+
"_resolved": "git+https://github.com/NativeScript/template-hello-world-ng.git#2206d64e5e60191ff43a7d8f03d8aeded4ad3302"
57+
}

Diff for: nativescript/package.json

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"description": "NativeScript Application",
3+
"license": "SEE LICENSE IN <your-license-filename>",
4+
"readme": "NativeScript Application",
5+
"repository": "<fill-your-repository-here>",
6+
"nativescript": {
7+
"id": "org.nativescript.nativescript",
8+
"tns-ios": {
9+
"version": "2.0.1"
10+
},
11+
"tns-android": {
12+
"version": "2.0.0"
13+
}
14+
},
15+
"dependencies": {
16+
"@angular/common": "2.0.0-rc.1",
17+
"@angular/compiler": "2.0.0-rc.1",
18+
"@angular/core": "2.0.0-rc.1",
19+
"@angular/http": "2.0.0-rc.1",
20+
"@angular/platform-browser": "2.0.0-rc.1",
21+
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
22+
"@angular/platform-server": "2.0.0-rc.1",
23+
"@angular/router": "2.0.0-rc.1",
24+
"@angular/router-deprecated": "2.0.0-rc.1",
25+
"nativescript-angular": "0.1.1",
26+
"nativescript-ng2-magic": "^1.5.7",
27+
"tns-core-modules": "^2.0.0"
28+
},
29+
"devDependencies": {
30+
"babel-traverse": "6.9.0",
31+
"babel-types": "6.9.0",
32+
"babylon": "6.8.0",
33+
"filewalker": "0.1.2",
34+
"lazy": "1.0.11",
35+
"nativescript-dev-sass": "^0.1.0",
36+
"nativescript-dev-typescript": "^0.3.2",
37+
"typescript": "^1.8.10"
38+
}
39+
}

0 commit comments

Comments
 (0)