-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to the official {N} plugin seed
- Loading branch information
Showing
108 changed files
with
1,782 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,25 @@ | ||
.idea/ | ||
.vscode/ | ||
demo/lib/ | ||
demo/platforms/ | ||
demo/node_modules/ | ||
npm-debug.log | ||
.vscode | ||
.idea | ||
.DS_Store | ||
*.esm.json | ||
*.js | ||
*.js.map | ||
*.log | ||
src/*.d.ts | ||
!src/index.d.ts | ||
!src/references.d.ts | ||
!src/scripts/*.js | ||
!seed-tests/*.js | ||
seed-tests/seed-copy/**/*.* | ||
seed-tests/seed-copy-new-git-repo/**/*.* | ||
!demo/karma.conf.js | ||
!demo/app/tests/*.js | ||
demo/*.d.ts | ||
!demo/references.d.ts | ||
demo/lib | ||
demo/platforms | ||
node_modules | ||
publish/src | ||
publish/package | ||
demo/report/report.html | ||
demo/report/stats.json |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
matrix: | ||
include: | ||
- stage: "Lint" | ||
language: node_js | ||
os: linux | ||
node_js: "8" | ||
script: cd src && npm run ci.tslint && cd ../demo && npm run ci.tslint | ||
- stage: "WebPack, Build and Test" | ||
os: osx | ||
env: | ||
- WebPack="iOS" | ||
osx_image: xcode9.2 | ||
language: node_js | ||
node_js: "8" | ||
jdk: oraclejdk8 | ||
script: cd demo && npm run build.plugin && npm i && tns build ios --bundle --env.uglify | ||
- language: android | ||
os: linux | ||
env: | ||
- WebPack="Android" | ||
jdk: oraclejdk8 | ||
before_install: nvm install 8 | ||
script: cd demo && npm run build.plugin && npm i && tns build android --bundle --env.uglify --env.snapshot | ||
- language: android | ||
env: | ||
- BuildAndroid="26" | ||
os: linux | ||
jdk: oraclejdk8 | ||
before_install: nvm install stable | ||
script: | ||
- cd src && npm i && npm run tsc && cd ../demo && tns build android | ||
- os: osx | ||
env: | ||
- BuildiOS="11" | ||
- Xcode="9.2" | ||
osx_image: xcode9.2 | ||
language: node_js | ||
node_js: "8" | ||
jdk: oraclejdk8 | ||
script: | ||
- cd src && npm i && npm run tsc && cd ../demo && tns build ios | ||
- os: linux | ||
language: android | ||
dist: precise | ||
sudo: required | ||
jdk: oraclejdk8 | ||
before_script: | ||
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a | ||
- emulator -avd test -no-audio -no-window & | ||
- android-wait-for-emulator | ||
before_install: | ||
- nvm install 8 | ||
script: cd src && npm run test.android | ||
- os: osx | ||
language: node_js | ||
node_js: "8" | ||
jdk: oraclejdk8 | ||
osx_image: xcode9.2 | ||
script: cd src && npm run test.ios | ||
|
||
android: | ||
components: | ||
- tools | ||
- platform-tools | ||
- build-tools-26.0.1 | ||
- android-26 | ||
- android-23 | ||
- extra-android-m2repository | ||
- sys-img-armeabi-v7a-android-21 | ||
|
||
install: | ||
- echo no | npm install -g nativescript | ||
- tns usage-reporting disable | ||
- tns error-reporting disable |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Add your native dependencies here: | ||
|
||
// Uncomment to add recyclerview-v7 dependency | ||
//dependencies { | ||
// compile 'com.android.support:recyclerview-v7:+' | ||
//} | ||
|
||
android { | ||
defaultConfig { | ||
generatedDensities = [] | ||
applicationId = "org.nativescript.demo" | ||
} | ||
aaptOptions { | ||
additionalParameters "--no-version-vectors" | ||
} | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+3.42 KB
demo/app/App_Resources/Android/src/main/res/drawable-hdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.31 KB
demo/app/App_Resources/Android/src/main/res/drawable-ldpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.89 KB
demo/app/App_Resources/Android/src/main/res/drawable-mdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions
8
demo/app/App_Resources/Android/src/main/res/drawable-nodpi/splash_screen.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:gravity="fill"> | ||
<item> | ||
<bitmap android:gravity="fill" android:src="@drawable/background" /> | ||
</item> | ||
<item> | ||
<bitmap android:gravity="center" android:src="@drawable/logo" /> | ||
</item> | ||
</layer-list> |
Binary file added
BIN
+5.26 KB
demo/app/App_Resources/Android/src/main/res/drawable-xhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+10.3 KB
demo/app/App_Resources/Android/src/main/res/drawable-xxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+3.87 KB
demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.5 KB
demo/app/App_Resources/Android/src/main/res/drawable-xxxhdpi/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions
4
demo/app/App_Resources/Android/src/main/res/values-v21/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ns_accent">#3d5afe</color> | ||
</resources> |
23 changes: 23 additions & 0 deletions
23
demo/app/App_Resources/Android/src/main/res/values-v21/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
|
||
<!-- Application theme --> | ||
<style name="AppTheme" parent="AppThemeBase"> | ||
<item name="android:datePickerStyle">@style/SpinnerDatePicker</item> | ||
<item name="android:timePickerStyle">@style/SpinnerTimePicker</item> | ||
</style> | ||
|
||
<!-- Default style for DatePicker - in spinner mode --> | ||
<style name="SpinnerDatePicker" parent="android:Widget.Material.Light.DatePicker"> | ||
<item name="android:datePickerMode">spinner</item> | ||
</style> | ||
|
||
<!-- Default style for TimePicker - in spinner mode --> | ||
<style name="SpinnerTimePicker" parent="android:Widget.Material.Light.TimePicker"> | ||
<item name="android:timePickerMode">spinner</item> | ||
</style> | ||
|
||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase"> | ||
<item name="android:elevation">4dp</item> | ||
</style> | ||
</resources> |
7 changes: 7 additions & 0 deletions
7
demo/app/App_Resources/Android/src/main/res/values/colors.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="ns_primary">#F5F5F5</color> | ||
<color name="ns_primaryDark">#757575</color> | ||
<color name="ns_accent">#33B5E5</color> | ||
<color name="ns_blue">#272734</color> | ||
</resources> |
45 changes: 45 additions & 0 deletions
45
demo/app/App_Resources/Android/src/main/res/values/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources xmlns:android="http://schemas.android.com/apk/res/android"> | ||
|
||
<!-- theme to use FOR launch screen--> | ||
<style name="LaunchScreenThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> | ||
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item> | ||
|
||
<item name="colorPrimary">@color/ns_primary</item> | ||
<item name="colorPrimaryDark">@color/ns_primaryDark</item> | ||
<item name="colorAccent">@color/ns_accent</item> | ||
|
||
<item name="android:windowBackground">@drawable/splash_screen</item> | ||
|
||
<item name="android:windowActionBarOverlay">true</item> | ||
<item name="android:windowTranslucentStatus">true</item> | ||
|
||
</style> | ||
|
||
<style name="LaunchScreenTheme" parent="LaunchScreenThemeBase"> | ||
</style> | ||
|
||
<!-- theme to use AFTER launch screen is loaded--> | ||
<style name="AppThemeBase" parent="Theme.AppCompat.Light.NoActionBar"> | ||
<item name="toolbarStyle">@style/NativeScriptToolbarStyle</item> | ||
|
||
<item name="colorPrimary">@color/ns_primary</item> | ||
<item name="colorPrimaryDark">@color/ns_primaryDark</item> | ||
<item name="colorAccent">@color/ns_accent</item> | ||
|
||
</style> | ||
|
||
<style name="AppTheme" parent="AppThemeBase"> | ||
</style> | ||
|
||
<!-- theme for actioon-bar --> | ||
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar"> | ||
<item name="android:background">@color/ns_primary</item> | ||
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item> | ||
<item name="popupTheme">@style/ThemeOverlay.AppCompat</item> | ||
|
||
</style> | ||
|
||
<style name="NativeScriptToolbarStyle" parent="NativeScriptToolbarStyleBase"> | ||
</style> | ||
</resources> |
128 changes: 128 additions & 0 deletions
128
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,128 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "iphone", | ||
"filename" : "icon-29.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "57x57", | ||
"idiom" : "iphone", | ||
"filename" : "icon-57.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "57x57", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "60x60", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "60x60", | ||
"idiom" : "iphone", | ||
"filename" : "[email protected]", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "ipad", | ||
"filename" : "icon-29.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "29x29", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "ipad", | ||
"filename" : "icon-40.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "40x40", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "50x50", | ||
"idiom" : "ipad", | ||
"filename" : "icon-50.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "50x50", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "72x72", | ||
"idiom" : "ipad", | ||
"filename" : "icon-72.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "72x72", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "76x76", | ||
"idiom" : "ipad", | ||
"filename" : "icon-76.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"size" : "76x76", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"size" : "83.5x83.5", | ||
"idiom" : "ipad", | ||
"filename" : "[email protected]", | ||
"scale" : "2x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+1.34 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-29.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.91 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.83 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.04 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+4.27 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+7.28 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added
BIN
+7.18 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+10.6 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
File renamed without changes
Binary file renamed
BIN
+38.6 KB
demo/app/App_Resources/iOS/[email protected] → ...cassets/AppIcon.appiconset/[email protected]
100755 → 100644
Oops, something went wrong.
Binary file added
BIN
+4.07 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/icon-76.png
Oops, something went wrong.
Binary file added
BIN
+9.78 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+9.71 KB
demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/[email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Oops, something went wrong.