Skip to content
This repository has been archived by the owner on Jan 18, 2023. It is now read-only.

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmartin committed Mar 7, 2019
1 parent c9f70e8 commit 57ada2a
Show file tree
Hide file tree
Showing 83 changed files with 648 additions and 177 deletions.
47 changes: 37 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,42 @@
*.js
!src/scripts/*.js
# Demo application build files
demo/platforms/*
demo/lib/*

*.DS_Store

src/*.js
/*.js
demo/app/**.js
demo/node_modules/
node_modules/
hooks

.vscode
.idea
demo/.DS_Store
demo/app/.DS_Store
.DS_Store
.npmrc
*.js
*.js.map
*.log
*.d.ts
!index.d.ts
demo/lib
demo/app/*.js
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
demo/node_modules
demo/.vscode
node_modules
*.DS_Store
package-lock.json
publish/src
publish/package
demo/report/report.html
demo/report/stats.json
!demo/webpack.config.js
!demo/app/tests/**.js
3 changes: 1 addition & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"singleQuote": true,
"semi": true,
"printWidth": 120
"semi": true
}
118 changes: 118 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
branches:
only:
- master

stages:
- lint
- build core
- webpack core
- tests

matrix:
include:
# Lint
- stage: lint
language: node_js
os: linux
node_js: "8"
script:
- cd src && npm run ci.tslint
- cd ../demo && npm run ci.tslint
# Build Core App
- stage: build core
## Android Build
os: linux
env:
- OS="Android28"
language: android
jdk: oraclejdk8
before_install: nvm install 8.11.4
script:
- cd src && npm i && npm run tsc
- cd ../demo && tns build android
## iOS Build
- os: osx
env:
- OS="iOS12.0"
- Xcode="10.0"
osx_image: xcode10
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd src && npm i && npm run tsc
- cd ../demo && tns build ios
# Webpack Core App
- stage: webpack core
## Android Webpack
os: linux
language: android
env:
- OS="Android28"
jdk: oraclejdk8
before_install: nvm install 8.11.4
script:
- cd demo && npm run build.plugin
- npm i && tns build android --bundle --env.uglify
## iOS Webpack
- os: osx
env:
- OS="iOS12.0"
- Xcode="10.0"
osx_image: xcode10
language: node_js
node_js: "8"
jdk: oraclejdk8
script:
- cd demo && npm run build.plugin
- npm i && tns build ios --bundle --env.uglify
# Tests
- stage: tests
## Android Test
os: linux
language: android
dist: precise
jdk: oraclejdk8
env:
- OS="Android28"
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 i && npm run tsc && npm run tslint
- cd ../demo && tns build android
- travis_wait travis_retry tns test android --justlaunch
## iOS Test
- os: osx
language: node_js
node_js: "8"
jdk: oraclejdk8
env:
- OS="iOS12.0"
- Xcode="10.0"
osx_image: xcode10
script:
- cd src && npm i && npm run tsc && npm run tslint
- cd ../demo && tns build ios
- travis_wait travis_retry tns test ios --justlaunch

android:
components:
- tools
- platform-tools
- build-tools-28.0.3
- android-28
- extra-android-m2repository
- sys-img-armeabi-v7a-android-21

before_install:
- sudo pip install --upgrade pip
- sudo pip install six

install:
- echo no | npm install -g nativescript
- tns usage-reporting disable
- tns error-reporting disable
7 changes: 5 additions & 2 deletions demo/app/App_Resources/Android/app.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@

// Uncomment to add recyclerview-v7 dependency
//dependencies {
// compile 'com.android.support:recyclerview-v7:+'
// implementation 'com.android.support:recyclerview-v7:+'
//}

// If you want to add something to be applied before applying plugins' include.gradle files
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
// create a file named before-plugins.gradle in the current directory and place it there

android {
defaultConfig {
generatedDensities = []
applicationId = "org.nativescript.demo"
}
aaptOptions {
additionalParameters "--no-version-vectors"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.RECORD_AUDIO" />

<application
android:name="com.tns.NativeScriptApplication"
Expand All @@ -29,7 +28,7 @@
<activity
android:name="com.tns.NativeScriptActivity"
android:label="@string/title_activity_kimera"
android:configChanges="keyboardHidden|orientation|screenSize"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
android:theme="@style/LaunchScreenTheme">

<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />
Expand Down
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.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<style name="AppTheme" parent="AppThemeBase">
</style>

<!-- theme for actioon-bar -->
<!-- theme for action-bar -->
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar">
<item name="android:background">@color/ns_primary</item>
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"images" : [
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "20x20",
"idiom" : "iphone",
"filename" : "[email protected]",
"scale" : "3x"
},
{
"size" : "29x29",
"idiom" : "iphone",
Expand Down Expand Up @@ -30,18 +42,6 @@
"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",
Expand All @@ -55,51 +55,39 @@
"scale" : "3x"
},
{
"size" : "29x29",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "icon-29.png",
"filename" : "icon-20.png",
"scale" : "1x"
},
{
"size" : "29x29",
"size" : "20x20",
"idiom" : "ipad",
"filename" : "icon-29@2x.png",
"filename" : "icon-20@2x.png",
"scale" : "2x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-40.png",
"scale" : "1x"
},
{
"size" : "40x40",
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "50x50",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-50.png",
"filename" : "icon-29.png",
"scale" : "1x"
},
{
"size" : "50x50",
"size" : "29x29",
"idiom" : "ipad",
"filename" : "icon-50@2x.png",
"filename" : "icon-29@2x.png",
"scale" : "2x"
},
{
"size" : "72x72",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-72.png",
"filename" : "icon-40.png",
"scale" : "1x"
},
{
"size" : "72x72",
"size" : "40x40",
"idiom" : "ipad",
"filename" : "icon-72@2x.png",
"filename" : "icon-40@2x.png",
"scale" : "2x"
},
{
Expand All @@ -119,6 +107,12 @@
"idiom" : "ipad",
"filename" : "[email protected]",
"scale" : "2x"
},
{
"size" : "1024x1024",
"idiom" : "ios-marketing",
"filename" : "icon-1024.png",
"scale" : "1x"
}
],
"info" : {
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
{
"images" : [
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2688h",
"filename" : "Default-Portrait-XS-Max.png",
"minimum-system-version" : "12.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2688h",
"filename" : "Default-Landscape-XS-Max.png",
"minimum-system-version" : "12.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "1792h",
"filename" : "Default-Portrait-XR.png",
"minimum-system-version" : "12.0",
"orientation" : "portrait",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "1792h",
"filename" : "Default-Landscape-XR.png",
"minimum-system-version" : "12.0",
"orientation" : "landscape",
"scale" : "2x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2436h",
"filename" : "Default-1125h.png",
"minimum-system-version" : "11.0",
"orientation" : "portrait",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
"subtype" : "2436h",
"filename" : "Default-Landscape-X.png",
"minimum-system-version" : "11.0",
"orientation" : "landscape",
"scale" : "3x"
},
{
"extent" : "full-screen",
"idiom" : "iphone",
Expand Down
Loading

0 comments on commit 57ada2a

Please sign in to comment.