Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mfazekas committed Jun 15, 2024
0 parents commit bf3b4f2
Show file tree
Hide file tree
Showing 340 changed files with 43,009 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# iOS CircleCI 2.0 configuration file
#
# Check https://circleci.com/docs/2.0/ios-migrating-from-1-2/ for more details
#
version: 2
jobs:
build:

# Specify the Xcode version to use
macos:
xcode: "10.2.0"

steps:
- checkout
# NPM install
- run:
name: Install node_modules
working_directory: example
command: npm install
# Install CocoaPods
- run:
name: Install CocoaPods
working_directory: example/ios
command: pod install
# build xcode project
- run:
name: Build example
working_directory: example/ios
command: xcodebuild -workspace ./RNMapboxGLExample.xcworkspace -scheme RNMapboxGLExample

94 changes: 94 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
module.exports = {
"parser": "babel-eslint",
"plugins": [
"react",
"react-native",
"prettier",
"fp",
"flowtype",
],
"env": {
"jest": true
},
"settings": {
"react": {
"version": require('./package.json').dependencies.react,
},
"import/resolver": {
"node": {
"extensions": [
".js",
".jsx"
]
}
},
"react": {
"pragma": "React",
"version": "16.6.1",
"flowVersion": "0.87"
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
}
},
"globals": {
"fetch": true,
"FormData": true,
"requestAnimationFrame": true,
"cancelAnimationFrame": true,
"WebSocket": true,
"__DEV__": true,
"window": true,
"document": true,
"navigator": true,
"XMLSerializer": true,
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base",
"prettier",
"plugin:flowtype/recommended"
],
"rules": {
"react/no-deprecated": "error",
"import/named": [2],
"import/no-named-default": [0],
"import/order": ["error", { "groups": ["builtin", "external", "parent", "sibling", "index"], "newlines-between": "always" }],
"import/exports-last": [0],
"import/no-useless-path-segments": [2],
"camelcase": [0],
"no-console": [0],
"import/prefer-default-export": "off",
"jsx-a11y/href-no-hash": "off",
"react/prop-types": [2],
"quotes": [2, "single"],
"eol-last": [0],
"no-continue": [1],
"class-methods-use-this": [1],
"no-bitwise": [1],
"prefer-destructuring": [1],
"consistent-return": [1],
"no-warning-comments": [2],
"no-mixed-requires": [0],
"no-return-assign": 0,
"no-underscore-dangle": [0],
"no-await-in-loop": 0,
"no-restricted-syntax": 0,
"no-use-before-define": ["error", { "functions": false }],
"no-unused-expressions": ["error", { "allowTaggedTemplates": true }],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false
}
],
"fp/no-mutating-methods": "warn"
}
};
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Versions (please complete the following information):**
- Platfrom: [e.g. Android, iOS]
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- SDK Version [e.g. 22]
- React Native Version [e.g. 0.59]

**Additional context**
Add any other context about the problem here.
112 changes: 112 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
name: Bug Report
description: This template should be used for reporting bugs and defects.
title: "[Bug]: "
labels: 'bug :beetle:'
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report!
- type: dropdown
id: mapbox-implementation
attributes:
label: Mapbox Implementation
description: |-
Check `RNMapboxMapsImpl` in your Podfile/gradle files. Defaults to `Maplibre`.
options:
- Mapbox
- Mapbox GL
- Maplibre
validations:
required: true
- type: input
id: mapbox-version
attributes:
label: Mapbox Version
description: |-
Check `RNMapboxMapsVersion` in your Podfile/gradle files, set to `default` if you don't cusomize the version
placeholder: 10.7.0
validations:
required: true
- type: dropdown
id: platform
attributes:
label: Platform
multiple: true
description: |-
The platform where you experience the issue
options:
- iOS
- Android
validations:
required: true
- type: input
id: rnmapbox-version
attributes:
label: "`@rnmapbox/maps` version"
description: |-
The version of `@rnmapbox/maps`, such as `#main`, `10.0.0-beta.32`
value: 10.0.0-beta.11
validations:
required: true
- type: textarea
attributes:
label: Standalone component to reproduce
description: |-
- Use [our BugReportTemplate](https://github.com/rnmapbox/maps/blob/main/example/src/examples/BugReportExample.js) screens as a starting point.
- Component should be self contained - no extra libraries, external data, no parameters
- Do not include setAccessToken or access token istelf.
value: |-
```javascript
import React from 'react';
import {
MapView,
ShapeSource,
LineLayer,
Camera,
} from '@rnmapbox/maps';
const aLine = {
type: 'LineString',
coordinates: [
[-74.00597, 40.71427],
[-74.00697, 40.71527],
],
};
class BugReportExample extends React.Component {
render() {
return (
<MapView style={{flex: 1}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="idStreetLayer" shape={aLine}>
<LineLayer id="idStreetLayer" />
</ShapeSource>
</MapView>
);
}
}
```
validations:
required: true
- type: textarea
attributes:
label: Observed behavior and steps to reproduce
description: |-
- Please include as much evidence as possible (traces, videos, screenshots etc.)
- type: textarea
attributes:
label: Expected behavior
description: |-
- Please include the expected behavior and any resources supporting this expected behavior.
- type: textarea
attributes:
label: Notes / preliminary analysis
description: |-
- include your initial analysis, if available
- type: textarea
attributes:
label: Additional links and references
description: |-
- Links to traces, videos et
60 changes: 60 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
Podfile.lock
Pods/

# node.js
#
node_modules/
npm-debug.log
package-lock.json
*.tgz
yarn.lock

# project specific
ios/Mapbox.framework
ios/temp.zip
ios/.framework_version
ios/Pods/
android/build/
android/.gradle/
android/.idea/
android/android.iml
android/gradle/
android/gradlew
android/gradlew.bat
android/local.properties
reactnativemapboxgl.iml
.idea
coverage
.project
*.core.prefs

# Buck
.buckd
buck-out
/ReactAndroid/src/main/jni/prebuilt/lib/armeabi-v7a/
/ReactAndroid/src/main/jni/prebuilt/lib/x86/
/ReactAndroid/src/main/gen

44 changes: 44 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
Podfile.lock
Pods/

# node.js
#
node_modules/
npm-debug.log

# project specific
android/.gradle/
android/.idea/
android/android.iml
android/gradle/
android/gradlew
android/gradlew.bat
android/local.properties

# react-native-mapbox-gl
example
__tests__
coverage
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## 7.0.0

### removed:

* isTelemeryEnbaled from android [#1](https://github.com/mfazekas/maps/pull/1)

Loading

0 comments on commit bf3b4f2

Please sign in to comment.