Skip to content

Commit bd50186

Browse files
committed
chore: project update
1 parent f895fbb commit bd50186

File tree

9 files changed

+87
-9776
lines changed

9 files changed

+87
-9776
lines changed

.classpath

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="bin/main" path="plugin/platforms/android/java">
4+
<attributes>
5+
<attribute name="gradle_scope" value="main"/>
6+
<attribute name="gradle_used_by_scope" value="main,test"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8/"/>
10+
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
11+
<classpathentry kind="output" path="bin/default"/>
12+
</classpath>

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ module.exports = {
141141
'no-irregular-whitespace': 'off',
142142
'no-multiple-empty-lines': 'off',
143143
'no-new-wrappers': 'error',
144-
'no-redeclare': 'error',
144+
'no-redeclare': ['error', { builtinGlobals: false }],
145145
'no-regex-spaces': 'error',
146146
'no-return-await': 'error',
147147
'no-shadow': [

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ Pods
2222
/plugin/README.md
2323
plugin/**/*js.map
2424
plugin/**/*js
25+
pnpm-lock.yaml

.project

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>nativescript-gesturehandler</name>
4+
<comment>Project nativescript-gesturehandler created by Buildship.</comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
22+
</natures>
23+
<filteredResources>
24+
<filter>
25+
<id>1604680591551</id>
26+
<name></name>
27+
<type>30</type>
28+
<matcher>
29+
<id>org.eclipse.core.resources.regexFilterMatcher</id>
30+
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
31+
</matcher>
32+
</filter>
33+
</filteredResources>
34+
</projectDescription>

build.gradle

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
apply plugin: 'java'
2+
3+
// Use maven repository
4+
repositories {
5+
mavenCentral()
6+
google()
7+
flatDir {
8+
dirs '../../../node_modules/@nativescript/core/platforms/android'
9+
}
10+
}
11+
dependencies {
12+
implementation files('/Volumes/dev/androidSDK/platforms/android-28/android.jar')
13+
compile(name:'widgets-release', ext:'aar')
14+
implementation "androidx.annotation:annotation:1.1.0"
15+
}
16+
sourceSets {
17+
main {
18+
java {
19+
srcDirs = ["plugin/platforms/android/java"]
20+
}
21+
}
22+
}

package.json

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "1.0.0",
44
"description": "Nativescript plugin for gestures",
55
"scripts": {
6+
"setup": "ts-patch install",
67
"tsc": "cp src/gesturehandler.d.ts plugin && tsc -skipLibCheck -d",
78
"clean": "rimraf ./plugin/**/*.d.ts ./plugin/**/*.js ./plugin/**/*.js.map plugin/node_modules plugin/package-lock.json",
89
"build.plugin": " cp README.md plugin/ && rm -f .tsbuildinfo && npm run tsc",
@@ -17,7 +18,7 @@
1718
"plugin.watch.android": "npm i && npm-watch build.android",
1819
"plugin.watch.ios": "npm i && npm-watch build.ios",
1920
"plugin.watch": "npm run plugin.watch.tsc & npm run plugin.watch.android & npm run plugin.watch.ios",
20-
"publish": "npm run build && lerna publish",
21+
"publish": "npm run build && lerna publish --create-release=github",
2122
"commitmsg": "commitlint -e $GIT_PARAMS"
2223
},
2324
"keywords": [
@@ -37,26 +38,28 @@
3738
"homepage": "https://github.com/nativescript-community/gesturehandler",
3839
"readmeFilename": "README.md",
3940
"devDependencies": {
40-
"@commitlint/cli": "^9.1.2",
41-
"@commitlint/config-conventional": "^9.1.2",
41+
"@commitlint/cli": "^11.0.0",
42+
"@commitlint/config-conventional": "^11.0.0",
4243
"@nativescript-community/observable": "^2.0.8",
43-
"@nativescript/core": "7.0.0",
44-
"@nativescript/types-android": "7.0.2",
45-
"@nativescript/types-ios": "7.0.1",
46-
"@nativescript/webpack": "3.0.2",
44+
"@nativescript/core": "7.0.13",
45+
"@nativescript/types-android": "7.0.4",
46+
"@nativescript/types-ios": "7.0.4",
47+
"@nativescript/webpack": "3.0.8",
4748
"@types/node": "^13.11.1",
48-
"@typescript-eslint/eslint-plugin": "4.0.1",
49-
"@typescript-eslint/parser": "4.0.1",
49+
"@typescript-eslint/eslint-plugin": "4.6.1",
50+
"@typescript-eslint/parser": "4.6.1",
5051
"cpy-cli": "^3.1.1",
5152
"eslint": "7.8.1",
52-
"eslint-config-prettier": "^6.13.0",
53+
"eslint-config-prettier": "^6.15.0",
5354
"eslint-plugin-prettier": "^3.1.4",
54-
"husky": "^4.2.5",
55+
"husky": "^4.3.0",
5556
"lerna": "^3.22.1",
5657
"npm-watch": "^0.7.0",
5758
"prettier": "^2.1.2",
5859
"prompt": "^1.0.0",
5960
"rimraf": "^3.0.2",
61+
"ts-patch": "^1.3.0",
62+
"tslib": "2.0.3",
6063
"typescript": "~3.9.7"
6164
},
6265
"bootstrapper": "nativescript-plugin-seed",
@@ -79,4 +82,4 @@
7982
"@commitlint/config-conventional"
8083
]
8184
}
82-
}
85+
}

0 commit comments

Comments
 (0)