Skip to content

Commit 05f7c6b

Browse files
committed
chore: move to @nativescript-community
1 parent 06729bf commit 05f7c6b

Some content is hidden

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

54 files changed

+12562
-23728
lines changed

.eslintrc.js

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
1+
module.exports = {
2+
extends: ['plugin:prettier/recommended'],
3+
plugins: ['prettier', '@typescript-eslint'],
4+
parser: '@typescript-eslint/parser',
5+
parserOptions: {
6+
createDefaultProgram: true,
7+
project: './tsconfig.json',
8+
},
9+
rules: {
10+
'prettier/prettier': 'warn',
11+
'@typescript-eslint/adjacent-overload-signatures': 'error',
12+
'@typescript-eslint/array-type': 'error',
13+
'@typescript-eslint/await-thenable': 'error',
14+
'@typescript-eslint/ban-types': 'off',
15+
'@typescript-eslint/class-name-casing': 'off',
16+
'@typescript-eslint/consistent-type-assertions': 'error',
17+
'@typescript-eslint/consistent-type-definitions': 'error',
18+
'@typescript-eslint/explicit-member-accessibility': [
19+
'off',
20+
{
21+
accessibility: 'explicit',
22+
},
23+
],
24+
'@typescript-eslint/indent': [
25+
'error',
26+
4,
27+
{
28+
FunctionDeclaration: {
29+
parameters: 'first',
30+
},
31+
FunctionExpression: {
32+
parameters: 'first',
33+
},
34+
SwitchCase: 1,
35+
},
36+
],
37+
'@typescript-eslint/interface-name-prefix': 'off',
38+
'@typescript-eslint/member-delimiter-style': 'error',
39+
'@typescript-eslint/member-ordering': 'off',
40+
'@typescript-eslint/no-empty-function': 'off',
41+
'@typescript-eslint/no-empty-interface': 'off',
42+
'@typescript-eslint/no-explicit-any': 'off',
43+
'@typescript-eslint/no-floating-promises': 'off',
44+
'@typescript-eslint/no-inferrable-types': 'off',
45+
'@typescript-eslint/no-misused-new': 'off',
46+
'@typescript-eslint/no-namespace': 'off',
47+
'@typescript-eslint/no-parameter-properties': 'off',
48+
'@typescript-eslint/no-require-imports': 'off',
49+
'@typescript-eslint/no-unnecessary-qualifier': 'error',
50+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
51+
'@typescript-eslint/no-use-before-declare': 'off',
52+
'@typescript-eslint/no-var-requires': 'off',
53+
'@typescript-eslint/prefer-for-of': 'off',
54+
'@typescript-eslint/prefer-function-type': 'error',
55+
'@typescript-eslint/prefer-namespace-keyword': 'error',
56+
'@typescript-eslint/quotes': [
57+
'error',
58+
'single',
59+
{
60+
avoidEscape: true,
61+
},
62+
],
63+
'@typescript-eslint/semi': ['error'],
64+
'@typescript-eslint/space-within-parens': ['off', 'never'],
65+
'@typescript-eslint/triple-slash-reference': 'off',
66+
'@typescript-eslint/type-annotation-spacing': 'error',
67+
'@typescript-eslint/unified-signatures': 'error',
68+
'arrow-body-style': 'error',
69+
'arrow-parens': ['off', 'as-needed'],
70+
camelcase: 'off',
71+
'capitalized-comments': 'off',
72+
complexity: 'off',
73+
'constructor-super': 'error',
74+
curly: ['error', 'multi-line'],
75+
'dot-notation': 'off',
76+
'eol-last': 'error',
77+
eqeqeq: ['error', 'smart'],
78+
'guard-for-in': 'off',
79+
'id-blacklist': ['error', 'any', 'string', 'boolean', 'Undefined'],
80+
'id-match': 'error',
81+
'sort-imports': [
82+
'error',
83+
{
84+
ignoreCase: false,
85+
ignoreDeclarationSort: true,
86+
ignoreMemberSort: false,
87+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
88+
},
89+
],
90+
'linebreak-style': 'off',
91+
'max-classes-per-file': 'off',
92+
'max-len': [
93+
'off',
94+
{
95+
ignorePattern: '^import |^export {(.*?)}',
96+
code: 200,
97+
},
98+
],
99+
'new-parens': 'off',
100+
'newline-per-chained-call': 'off',
101+
'no-bitwise': 'off',
102+
'no-caller': 'error',
103+
'no-cond-assign': 'off',
104+
'no-console': [
105+
'off',
106+
{
107+
allow: [
108+
'log',
109+
'warn',
110+
'dir',
111+
'timeLog',
112+
'assert',
113+
'clear',
114+
'count',
115+
'countReset',
116+
'group',
117+
'groupEnd',
118+
'table',
119+
'debug',
120+
'dirxml',
121+
'error',
122+
'groupCollapsed',
123+
'Console',
124+
'profile',
125+
'profileEnd',
126+
'timeStamp',
127+
'context',
128+
],
129+
},
130+
],
131+
'no-constant-condition': 'error',
132+
'no-control-regex': 'off',
133+
'no-debugger': 'error',
134+
'no-duplicate-imports': 'error',
135+
'no-empty': 'off',
136+
'no-eval': 'off',
137+
'no-extra-semi': 'off',
138+
'no-fallthrough': 'error',
139+
'no-invalid-regexp': 'error',
140+
'no-invalid-this': 'off',
141+
'no-irregular-whitespace': 'off',
142+
'no-multiple-empty-lines': 'off',
143+
'no-new-wrappers': 'error',
144+
'no-redeclare': ['error', { builtinGlobals: false }],
145+
'no-regex-spaces': 'error',
146+
'no-return-await': 'error',
147+
'no-shadow': [
148+
'off',
149+
{
150+
hoist: 'all',
151+
},
152+
],
153+
'no-throw-literal': 'error',
154+
'no-trailing-spaces': 'error',
155+
'no-undef-init': 'error',
156+
'no-underscore-dangle': 'off',
157+
'no-unsafe-finally': 'error',
158+
'no-unused-expressions': [
159+
'error',
160+
{
161+
allowTaggedTemplates: true,
162+
allowShortCircuit: true,
163+
},
164+
],
165+
'no-unused-labels': 'error',
166+
'no-var': 'error',
167+
'object-shorthand': 'error',
168+
'one-var': ['off', 'never'],
169+
'prefer-arrow/prefer-arrow-functions': 'off',
170+
'prefer-const': 'error',
171+
'quote-props': 'off',
172+
radix: 'error',
173+
'space-before-function-paren': 'off',
174+
'use-isnan': 'error',
175+
'valid-typeof': 'off',
176+
},
177+
};

.gitignore

Lines changed: 78 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,81 @@
1-
.idea
2-
.history
3-
.vscode
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
427
.DS_Store
5-
*.js
6-
*.log
28+
.AppleDouble
29+
.LSOverride
30+
.idea
31+
32+
# Thumbnails
33+
._*
34+
35+
# Files that might appear on external disk
36+
.Spotlight-V100
37+
.Trashes
38+
39+
# Directories potentially created on remote AFP share
40+
.AppleDB
41+
.AppleDesktop
42+
Network Trash Folder
43+
Temporary Items
44+
.apdisk
45+
46+
bin
47+
obj
48+
build/
49+
.vs
50+
.tscache
51+
*.user
52+
!demo-vue/app/app.js
753
*.map
8-
*.tgz
9-
*.aar
10-
!src/angular/*.js
11-
!demo/karma.conf.js
12-
!demo/app/tests/*.js
13-
demo/*.d.ts
14-
src/*.d.ts
15-
!src/index.d.ts
16-
!src/references.d.ts
17-
demo/lib
18-
demo/platforms
54+
!gruntfile.js
1955
node_modules
20-
demo/hooks/
21-
publish/package/
22-
ngdemo/lib
23-
ngdemo/platoforms
24-
ngdemo/node_modules
25-
ngdemo/hooks
56+
*.tmp.*
57+
demo*/platforms
58+
lib
59+
!webpack.*.js
60+
!build.esm.js
61+
report
62+
*.log
63+
64+
*.framework
65+
*.aar
66+
67+
Pods
68+
*.lock
69+
*.xcworkspace
70+
plugin/**/*.d.ts
71+
/plugin/README.md
72+
package-lock.json
73+
/.vscode
74+
/pnpm-lock.yaml
75+
76+
.update_backup
77+
.migration_backup
78+
plugin/**/*js.map
79+
plugin/**/*js
80+
pnpm-lock.yaml
81+
hooks

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 200,
3+
"semi": true,
4+
"tabWidth": 4,
5+
"singleQuote": true
6+
}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
[![Downloads][downloads-image]][npm-url]
99
[![Twitter Follow][twitter-image]][twitter-url]
1010

11-
[build-status]:https://travis-ci.org/EddyVerbruggen/nativescript-mapbox.svg?branch=master
12-
[build-url]:https://travis-ci.org/EddyVerbruggen/nativescript-mapbox
11+
[build-status]:https://travis-ci.org/@nativescript-community/ui-mapbox.svg?branch=master
12+
[build-url]:https://travis-ci.org/@nativescript-community/ui-mapbox
1313
[npm-image]:http://img.shields.io/npm/v/nativescript-mapbox.svg
1414
[npm-url]:https://npmjs.org/package/nativescript-mapbox
1515
[downloads-image]:http://img.shields.io/npm/dm/nativescript-mapbox.svg
@@ -18,7 +18,7 @@
1818

1919
Awesome native OpenGL-powered maps - by Mapbox
2020

21-
<img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-mapbox/master/screenshots/ios-demoapp-slice.png" width="375px" height="196px" />
21+
<img src="https://raw.githubusercontent.com/nativescript-community/ui-mapbox/master/screenshots/ios-demoapp-slice.png" width="375px" height="196px" />
2222

2323
> There is a NativeScript Core Modules bug under Android that causes random crashes on navigation. See ./demo-angular/README.md for a workaround.
2424
> https://github.com/NativeScript/NativeScript/issues/7954
@@ -107,7 +107,7 @@ You can instantiate a map from JS or TS. As the map is yet another view componen
107107

108108
A simple layout could look like this:
109109

110-
<img src="https://raw.githubusercontent.com/EddyVerbruggen/nativescript-mapbox/master/screenshots/ios-xml-declared.png" width="373px" height="361px" />
110+
<img src="https://raw.githubusercontent.com/@nativescript-community/ui-mapbox/master/screenshots/ios-xml-declared.png" width="373px" height="361px" />
111111

112112
Could be rendered by a definition like this:
113113

demo-angular/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
"@nativescript/core": "^7.0.3",
2121
"@nativescript/theme": "^2.3.3",
2222
"@nativescript/webpack": "^3.0.4",
23-
"nativescript-advanced-permissions": "^1.2.0",
24-
"nativescript-mapbox": "file:../publish/dist/package",
23+
"@nativescript-community/perms": "^2.1.1",
24+
"@nativescrit-community/ui-mapbox": "file:../plugin",
2525
"nativescript-ui-sidedrawer": "~9.0.0",
2626
"reflect-metadata": "~0.1.12",
2727
"rxjs": "^6.4.0",

demo-angular/references.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,2 @@
11
/// <reference path="./node_modules/tns-platform-declarations/ios.d.ts" />
22
/// <reference path="./node_modules/tns-platform-declarations/android.d.ts" />
3-
4-
/**
5-
* FIXME: this is here to resolve a weird "Cannot find name MGLUserLocationAnnotationView" error
6-
* which occurs without it.
7-
*/
8-
9-
/// <reference path="./node_modules/nativescript-mapbox/platforms/ios/Mapbox.d.ts" />

demo/app/App_Resources/Android/app.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
android {
99
defaultConfig {
1010
generatedDensities = []
11-
applicationId = "org.nativescript.mapbox"
1211
}
1312
aaptOptions {
1413
additionalParameters "--no-version-vectors"
-2.04 KB
Binary file not shown.

demo/app/app.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
import * as application from '@nativescript/core/application';
2-
3-
application.run({ moduleName: "main-page" });
2+
import { Trace } from '@nativescript/core';
3+
import { MapboxTraceCategory } from '@nativescrit-community/ui-mapbox';
4+
console.log('MapboxTraceCategory', MapboxTraceCategory);
5+
Trace.addCategories(MapboxTraceCategory);
6+
Trace.enable();
7+
application.run({ moduleName: 'main-page' });

0 commit comments

Comments
 (0)