Skip to content
Permalink
Browse files

observe v0.1.7

  • Loading branch information...
batpad committed May 13, 2019
0 parents commit b7522e25f369fa9051e1b02cde40135ffacc755b
Showing 3,776 changed files with 422,819 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
@@ -0,0 +1,159 @@
version: 2
jobs:
node:
working_directory: ~/observe-mobile
docker:
- image: circleci/node:8
steps:
- checkout

- restore_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}

- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}

- run: yarn install

- save_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn

- save_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
paths:
- node_modules

- run:
name: jest tests
command: |
mkdir -p test-results/jest
yarn run test
yarn run lint
environment:
JEST_JUNIT_OUTPUT: test-results/jest/junit.xml

- persist_to_workspace:
root: ~/observe-mobile
paths:
- node_modules

- store_test_results:
path: test-results

- store_artifacts:
path: test-results

android:
working_directory: ~/observe-mobile/android
docker:
- image: circleci/android:api-28-node8-alpha
steps:
- checkout:
path: ~/observe-mobile

- attach_workspace:
at: ~/observe-mobile

- restore_cache:
key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}

- run: bundle install -j $(nproc)

- save_cache:
key: bundle-v1-{{ checksum "Gemfile.lock" }}-{{ arch }}
paths:
- vendor/bundle

- run:
name: fastlane tests
command: |
yes | sdkmanager --licenses && sdkmanager --update
mkdir -p test-results/fastlane
bundle exec fastlane test
mv fastlane/report.xml test-results/fastlane
- store_test_results:
path: test-results

- store_artifacts:
path: test-results

ios:
macos:
xcode: "9.0"
working_directory: ~/observe-mobile

# use a --login shell so our "set Ruby version" command gets picked up for later steps
shell: /bin/bash --login -o pipefail

steps:
- checkout

- run:
name: set Ruby version
command: echo "ruby-2.4" > ~/.ruby-version

- restore_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}

- restore_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}

# not using a workspace here as Node and Yarn versions
# differ between our macOS executor image and the Docker containers above
- run: yarn install

- save_cache:
key: yarn-v1-{{ checksum "yarn.lock" }}-{{ arch }}
paths:
- ~/.cache/yarn

- save_cache:
key: node-v1-{{ checksum "package.json" }}-{{ arch }}
paths:
- node_modules

- restore_cache:
key: bundle-v1-{{ checksum "ios/Gemfile.lock" }}-{{ arch }}

- run:
command: bundle install -j $(nproc)
working_directory: ios

- save_cache:
key: bundle-v1-{{ checksum "ios/Gemfile.lock" }}-{{ arch }}
paths:
- vendor/bundle

- run:
command: bundle exec fastlane test
working_directory: ios

- run:
name: set up test results
working_directory: ios
when: always
command: |
mkdir -p test-results/fastlane test-results/xcode
mv fastlane/report.xml test-results/fastlane
mv fastlane/test_output/report.junit test-results/xcode/junit.xml
- store_test_results:
path: ios/test-results

- store_artifacts:
path: ios/test-results

workflows:
version: 2
node-android-ios:
jobs:
- node
- android:
requires:
- node
# - ios:
# requires:
# - node
@@ -0,0 +1,24 @@
MAPBOX_ACCESS_TOKEN=<your_mapbox_access_token>
MAPBOX_STYLE_URL=osm.json
MAPBOX_SATELLITE_STYLE_URL=satellite.json
REMOTE_MAPBOX_STYLE_URL=<remote URL>
REMOTE_SATELLITE_STYLE_URL=<remote URL>

OSM_TILE_URL=https://a.tile.openstreetmap.org/{z}/{x}/{y}.png
OSM_LAYER_NAME='OpenStreetMap'
SATELLITE_TILE_URL="https://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}@2x.png?access_token=${MAPBOX_ACCESS_TOKEN}"
SATELLITE_TILE_SIZE=512
SATELLITE_LAYER_NAME='Mapbox Satellite'

API_URL=<api_url>
OAUTH_AUTHORIZE_URL=<authorize_url>
OAUTH_TOKEN_URL=<token_url>
OAUTH_ACCESS_TOKEN_URL=<access_token_url>
OAUTH_CONSUMER_KEY=<consumer_key>
OAUTH_CONSUMER_SECRET=<consumer_secret>

PREAUTH_URL=<optional>
OPENCAGE_KEY=<optional>

# set limit for downloading mapbox tiles. 6000 is default and compliant with ToS
MAPBOX_OFFLINE_TILE_DOWNLOAD_LIMIT=6000
@@ -0,0 +1,7 @@
{
"extends": ["devseed-standard"],
"parser": "babel-eslint",
"globals": {
"__DEV__": "readonly"
}
}
@@ -0,0 +1,70 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js

; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/

[options]
emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable

module.system=haste
module.system.haste.use_name_reducers=true
# get basename
module.system.haste.name_reducers='^.*/\([a-zA-Z0-9$_.-]+\.js\(\.flow\)?\)$' -> '\1'
# strip .js or .js.flow suffix
module.system.haste.name_reducers='^\(.*\)\.js\(\.flow\)?$' -> '\1'
# strip .ios suffix
module.system.haste.name_reducers='^\(.*\)\.ios$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.android$' -> '\1'
module.system.haste.name_reducers='^\(.*\)\.native$' -> '\1'
module.system.haste.paths.blacklist=.*/__tests__/.*
module.system.haste.paths.blacklist=.*/__mocks__/.*
module.system.haste.paths.blacklist=<PROJECT_ROOT>/node_modules/react-native/Libraries/Animated/src/polyfills/.*
module.system.haste.paths.whitelist=<PROJECT_ROOT>/node_modules/react-native/Libraries/.*

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'

module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.86.0
@@ -0,0 +1 @@
*.pbxproj -text
@@ -0,0 +1,63 @@
# 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

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

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

# BUCK
buck-out/
\.buckd/
*.keystore
keystore.properties

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots

# Bundle artifact
*.jsbundle

.env
tmp
.tmp
app/assets/osm.json
app/assets/satellite.json
@@ -0,0 +1 @@
{}

0 comments on commit b7522e2

Please sign in to comment.
You can’t perform that action at this time.