Skip to content

Commit 6118e1e

Browse files
committed
update package
1 parent f3d77f2 commit 6118e1e

File tree

2 files changed

+42
-23
lines changed

2 files changed

+42
-23
lines changed

src/package.json

Lines changed: 41 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
{
22
"name": "nativescript-floatingactionbutton",
3-
"version": "4.0.3",
4-
"description": "A NativeScript plugin for Material Design Floating Action Button.",
3+
"version": "4.1.0",
4+
"description":
5+
"A NativeScript plugin for Material Design Floating Action Button.",
56
"main": "fab",
67
"typings": "index.d.ts",
78
"nativescript": {
89
"platforms": {
910
"android": "3.0.0",
1011
"ios": "3.0.0"
12+
},
13+
"plugin": {
14+
"nan": true,
15+
"pan": true,
16+
"core3": "true",
17+
"category": "Interface"
1118
}
1219
},
1320
"repository": {
@@ -17,26 +24,35 @@
1724
"scripts": {
1825
"tsc": "tsc -skipLibCheck",
1926
"build": "npm i && tsc",
20-
"postclone": "npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link",
21-
"test.android": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
22-
"test.ios": "npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
23-
"tslint": "cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
24-
"plugin.link": "npm link && cd ../demo && npm link nativescript-floatingactionbutton && cd ../src",
27+
"postclone":
28+
"npm i && node scripts/postclone.js && cd ../demo && npm i && cd ../src && npm run plugin.link",
29+
"test.android":
30+
"npm i && npm run tsc && npm run tslint && cd ../demo && tns build android && tns test android --justlaunch",
31+
"test.ios":
32+
"npm i && npm run tsc && npm run tslint && cd ../demo && tns build ios && tns test ios --justlaunch",
33+
"tslint":
34+
"cd .. && tslint \"**/*.ts\" --config tslint.json --exclude \"**/node_modules/**\"",
35+
"plugin.link":
36+
"npm link && cd ../demo && npm link nativescript-floatingactionbutton && cd ../src",
2537
"plugin.tscwatch": "npm run tsc -- -w",
26-
"demo.ios": "npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
27-
"demo.android": "npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
38+
"demo.ios":
39+
"npm i && npm run tsc && cd ../demo && tns run ios --syncAllFiles",
40+
"demo.android":
41+
"npm i && npm run tsc && cd ../demo && tns run android --syncAllFiles",
2842
"demo.reset": "cd ../demo && rimraf platforms",
29-
"plugin.prepare": "npm run tsc && cd ../demo && tns plugin remove nativescript-floatingactionbutton && tns plugin add ../src",
30-
"clean": "cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
31-
"ci.tslint": "npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'"
43+
"plugin.prepare":
44+
"npm run tsc && cd ../demo && tns plugin remove nativescript-floatingactionbutton && tns plugin add ../src",
45+
"clean":
46+
"cd ../demo && rimraf hooks node_modules platforms && cd ../src && rimraf node_modules && npm run plugin.link",
47+
"ci.tslint":
48+
"npm i && tslint '**/*.ts' --config '../tslint.json' --exclude '**/node_modules/**'",
49+
"pre-commit": "npm run lint-staged"
3250
},
3351
"lint-staged": {
34-
"*.ts": [
35-
"prettier --write",
36-
"git add"
37-
]
52+
"*.ts": ["prettier --write", "git add"]
3853
},
3954
"keywords": [
55+
"ecosystem:nativescript",
4056
"NativeScript",
4157
"native",
4258
"javascript",
@@ -48,7 +64,11 @@
4864
"bradmartin",
4965
"nStudio"
5066
],
51-
"author": "Brad Martin <[email protected]> (https://github.com/bradmartin)",
67+
"author": {
68+
"name": "Brad Martin",
69+
"url": "https://github.com/bradmartin",
70+
"email": "[email protected]"
71+
},
5272
"contributors": [
5373
{
5474
"name": "Lázaro Danillo",
@@ -80,17 +100,16 @@
80100
}
81101
],
82102
"license": "MIT",
83-
"bugs": "https://github.com/bradmartin/nativescript-floatingactionbutton/issues",
103+
"bugs":
104+
"https://github.com/bradmartin/nativescript-floatingactionbutton/issues",
84105
"homepage": "https://github.com/bradmartin/nativescript-floatingactionbutton",
85106
"devDependencies": {
86107
"husky": "^0.13.4",
87108
"lint-staged": "^3.6.1",
88109
"prettier": "^1.4.4",
89110
"tns-core-modules": "^3.1.0",
90111
"tns-platform-declarations": "^3.1.0",
91-
"typescript": "^2.2.2"
92-
},
93-
"peerDependencies": {
94-
"tns-core-modules": "^3.0.0 || ^3.0.0-rc.1"
112+
"tslint": "^5.1.0",
113+
"typescript": "~2.3.0"
95114
}
96115
}

src/platforms/android/include.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ android {
88
}
99

1010
dependencies {
11-
def supportVer = "26.1.0";
11+
def supportVer = "26.0.0";
1212

1313
if(project.hasProperty("supportVersion")) {
1414
supportVer = supportVersion

0 commit comments

Comments
 (0)