Skip to content

Commit 2b283c4

Browse files
committed
fix plugin structure
1 parent 1ab8bd3 commit 2b283c4

File tree

96 files changed

+840
-281
lines changed

Some content is hidden

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

96 files changed

+840
-281
lines changed

.gitignore

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,42 @@
1+
# Demo application build files
2+
demo/platforms/*
3+
demo/lib/*
4+
5+
*.DS_Store
6+
7+
src/*.js
8+
/*.js
9+
demo/app/**.js
10+
demo/node_modules/
11+
node_modules/
12+
hooks
13+
14+
.vscode
15+
.idea
16+
demo/.DS_Store
17+
demo/app/.DS_Store
18+
.DS_Store
19+
.npmrc
120
*.js
2-
!src/scripts/*.js
321
*.js.map
422
*.log
5-
*.d.ts
23+
src/*.d.ts
624
!src/index.d.ts
725
!src/references.d.ts
8-
demo/lib
26+
!src/scripts/*.js
27+
!seed-tests/*.js
28+
seed-tests/seed-copy/**/*.*
29+
seed-tests/seed-copy-new-git-repo/**/*.*
30+
!demo/karma.conf.js
31+
!demo/app/tests/*.js
932
demo/*.d.ts
33+
!demo/references.d.ts
34+
demo/lib
1035
demo/platforms
11-
demo/node_modules
12-
demo/.vscode
1336
node_modules
14-
.vscode/
15-
*.DS_Store
37+
publish/src
38+
publish/package
39+
demo/report/report.html
40+
demo/report/stats.json
41+
!demo/webpack.config.js
42+
!demo/app/tests/**.js

.travis.yml

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
branches:
2+
only:
3+
- master
4+
5+
stages:
6+
- lint
7+
- build core
8+
- webpack core
9+
- tests
10+
11+
matrix:
12+
include:
13+
# Lint
14+
- stage: lint
15+
language: node_js
16+
os: linux
17+
node_js: "8"
18+
script:
19+
- cd src && npm run ci.tslint
20+
- cd ../demo && npm run ci.tslint
21+
# Build Core App
22+
- stage: build core
23+
## Android Build
24+
os: linux
25+
env:
26+
- OS="Android28"
27+
language: android
28+
jdk: oraclejdk8
29+
before_install: nvm install 8.11.4
30+
script:
31+
- cd src && npm i && npm run tsc
32+
- cd ../demo && tns build android
33+
## iOS Build
34+
- os: osx
35+
env:
36+
- OS="iOS12.0"
37+
- Xcode="10.0"
38+
osx_image: xcode10
39+
language: node_js
40+
node_js: "8"
41+
jdk: oraclejdk8
42+
script:
43+
- cd src && npm i && npm run tsc
44+
- cd ../demo && tns build ios
45+
# Webpack Core App
46+
- stage: webpack core
47+
## Android Webpack
48+
os: linux
49+
language: android
50+
env:
51+
- OS="Android28"
52+
jdk: oraclejdk8
53+
before_install: nvm install 8.11.4
54+
script:
55+
- cd demo && npm run build.plugin
56+
- npm i && tns build android --bundle --env.uglify
57+
## iOS Webpack
58+
- os: osx
59+
env:
60+
- OS="iOS12.0"
61+
- Xcode="10.0"
62+
osx_image: xcode10
63+
language: node_js
64+
node_js: "8"
65+
jdk: oraclejdk8
66+
script:
67+
- cd demo && npm run build.plugin
68+
- npm i && tns build ios --bundle --env.uglify
69+
# Tests
70+
- stage: tests
71+
## Android Test
72+
os: linux
73+
language: android
74+
dist: precise
75+
jdk: oraclejdk8
76+
env:
77+
- OS="Android28"
78+
before_script:
79+
- echo no | android create avd --force -n test -t android-21 -b armeabi-v7a
80+
- emulator -avd test -no-audio -no-window &
81+
- android-wait-for-emulator
82+
before_install:
83+
- nvm install 8
84+
script:
85+
- cd src && npm i && npm run tsc && npm run tslint
86+
- cd ../demo && tns build android
87+
- travis_wait travis_retry tns test android --justlaunch
88+
## iOS Test
89+
- os: osx
90+
language: node_js
91+
node_js: "8"
92+
jdk: oraclejdk8
93+
env:
94+
- OS="iOS12.0"
95+
- Xcode="10.0"
96+
osx_image: xcode10
97+
script:
98+
- cd src && npm i && npm run tsc && npm run tslint
99+
- cd ../demo && tns build ios
100+
- travis_wait travis_retry tns test ios --justlaunch
101+
102+
android:
103+
components:
104+
- tools
105+
- platform-tools
106+
- build-tools-28.0.3
107+
- android-28
108+
- extra-android-m2repository
109+
- sys-img-armeabi-v7a-android-21
110+
111+
before_install:
112+
- sudo pip install --upgrade pip
113+
- sudo pip install six
114+
115+
install:
116+
- echo no | npm install -g nativescript
117+
- tns usage-reporting disable
118+
- tns error-reporting disable

src/LICENSE renamed to LICENSE

File renamed without changes.

README.md

Lines changed: 11 additions & 11 deletions
File renamed without changes.
File renamed without changes.
File renamed without changes.

demo/app/App_Resources/Android/app.gradle

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,16 @@
22

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

8+
// If you want to add something to be applied before applying plugins' include.gradle files
9+
// e.g. project.ext.googlePlayServicesVersion = "15.0.1"
10+
// create a file named before-plugins.gradle in the current directory and place it there
11+
812
android {
913
defaultConfig {
1014
generatedDensities = []
11-
applicationId = "org.nativescript.demo"
12-
13-
//override supported platforms
14-
// ndk {
15-
// abiFilters.clear()
16-
// abiFilters "armeabi-v7a"
17-
// }
18-
1915
}
2016
aaptOptions {
2117
additionalParameters "--no-version-vectors"
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

demo/app/App_Resources/Android/AndroidManifest.xml renamed to demo/app/App_Resources/Android/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<activity
2929
android:name="com.tns.NativeScriptActivity"
3030
android:label="@string/title_activity_kimera"
31-
android:configChanges="keyboardHidden|orientation|screenSize"
31+
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|smallestScreenSize|screenLayout|locale|uiMode"
3232
android:theme="@style/LaunchScreenTheme">
3333

3434
<meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

demo/app/App_Resources/Android/values/styles.xml renamed to demo/app/App_Resources/Android/src/main/res/values/styles.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<style name="AppTheme" parent="AppThemeBase">
3333
</style>
3434

35-
<!-- theme for actioon-bar -->
35+
<!-- theme for action-bar -->
3636
<style name="NativeScriptToolbarStyleBase" parent="Widget.AppCompat.Toolbar">
3737
<item name="android:background">@color/ns_primary</item>
3838
<item name="theme">@style/ThemeOverlay.AppCompat.ActionBar</item>

demo/app/App_Resources/iOS/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 30 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
22
"images" : [
3+
{
4+
"size" : "20x20",
5+
"idiom" : "iphone",
6+
"filename" : "[email protected]",
7+
"scale" : "2x"
8+
},
9+
{
10+
"size" : "20x20",
11+
"idiom" : "iphone",
12+
"filename" : "[email protected]",
13+
"scale" : "3x"
14+
},
315
{
416
"size" : "29x29",
517
"idiom" : "iphone",
@@ -30,18 +42,6 @@
3042
"filename" : "[email protected]",
3143
"scale" : "3x"
3244
},
33-
{
34-
"size" : "57x57",
35-
"idiom" : "iphone",
36-
"filename" : "icon-57.png",
37-
"scale" : "1x"
38-
},
39-
{
40-
"size" : "57x57",
41-
"idiom" : "iphone",
42-
"filename" : "[email protected]",
43-
"scale" : "2x"
44-
},
4545
{
4646
"size" : "60x60",
4747
"idiom" : "iphone",
@@ -55,51 +55,39 @@
5555
"scale" : "3x"
5656
},
5757
{
58-
"size" : "29x29",
58+
"size" : "20x20",
5959
"idiom" : "ipad",
60-
"filename" : "icon-29.png",
60+
"filename" : "icon-20.png",
6161
"scale" : "1x"
6262
},
6363
{
64-
"size" : "29x29",
64+
"size" : "20x20",
6565
"idiom" : "ipad",
66-
"filename" : "icon-29@2x.png",
66+
"filename" : "icon-20@2x.png",
6767
"scale" : "2x"
6868
},
6969
{
70-
"size" : "40x40",
71-
"idiom" : "ipad",
72-
"filename" : "icon-40.png",
73-
"scale" : "1x"
74-
},
75-
{
76-
"size" : "40x40",
77-
"idiom" : "ipad",
78-
"filename" : "[email protected]",
79-
"scale" : "2x"
80-
},
81-
{
82-
"size" : "50x50",
70+
"size" : "29x29",
8371
"idiom" : "ipad",
84-
"filename" : "icon-50.png",
72+
"filename" : "icon-29.png",
8573
"scale" : "1x"
8674
},
8775
{
88-
"size" : "50x50",
76+
"size" : "29x29",
8977
"idiom" : "ipad",
90-
"filename" : "icon-50@2x.png",
78+
"filename" : "icon-29@2x.png",
9179
"scale" : "2x"
9280
},
9381
{
94-
"size" : "72x72",
82+
"size" : "40x40",
9583
"idiom" : "ipad",
96-
"filename" : "icon-72.png",
84+
"filename" : "icon-40.png",
9785
"scale" : "1x"
9886
},
9987
{
100-
"size" : "72x72",
88+
"size" : "40x40",
10189
"idiom" : "ipad",
102-
"filename" : "icon-72@2x.png",
90+
"filename" : "icon-40@2x.png",
10391
"scale" : "2x"
10492
},
10593
{
@@ -119,6 +107,12 @@
119107
"idiom" : "ipad",
120108
"filename" : "[email protected]",
121109
"scale" : "2x"
110+
},
111+
{
112+
"size" : "1024x1024",
113+
"idiom" : "ios-marketing",
114+
"filename" : "icon-1024.png",
115+
"scale" : "1x"
122116
}
123117
],
124118
"info" : {
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)