Skip to content

Commit 7971c9d

Browse files
authored
Merge pull request #60 from RobertSasak/upgrade-example
Upgrade to support react 0.60
2 parents de739b2 + 15099ad commit 7971c9d

File tree

99 files changed

+9104
-6319
lines changed

Some content is hidden

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

99 files changed

+9104
-6319
lines changed

.prettierrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
bracketSpacing: true,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
semi: false,
7+
tabWidth: 2,
8+
}

.travis.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
matrix:
2+
include:
3+
- language: android
4+
jdk: oraclejdk8
5+
before_install:
6+
- nvm install 8
7+
- echo yes | sdkmanager "platforms;android-28"
8+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
9+
- export PATH=$HOME/.yarn/bin:$PATH
10+
android:
11+
components:
12+
- tools
13+
- platform-tools
14+
- build-tools-28.0.3
15+
- tools
16+
cache:
17+
bundler: true
18+
yarn: true
19+
directories:
20+
- example/node_modules
21+
- $HOME/.gradle/caches/
22+
- $HOME/.gradle/wrapper/
23+
before_cache:
24+
- rm -f example/node_modules/react-native-openalpr/
25+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
26+
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
27+
- os: osx
28+
osx_image: xcode10.2
29+
node_js: 8
30+
cache:
31+
bundler: true
32+
yarn: true
33+
cocoapods: true
34+
directories:
35+
- example/node_modules
36+
- $HOME/Library/Caches/Homebrew
37+
before_cache:
38+
- rm -f example/node_modules/react-native-openalpr/
39+
- brew cleanup
40+
podfile: example/ios/Podfile
41+
42+
before_install:
43+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
44+
- export PATH=$HOME/.yarn/bin:$PATH
45+
46+
install:
47+
- cd $TRAVIS_BUILD_DIR/example
48+
- yarn install
49+
- echo $TRAVIS_OS_NAME
50+
- |
51+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
52+
cd $TRAVIS_BUILD_DIR/example/ios
53+
pod install
54+
pod update
55+
gem install xcpretty
56+
fi
57+
script:
58+
- |
59+
if [ "$TRAVIS_OS_NAME" == "osx" ]; then
60+
cd $TRAVIS_BUILD_DIR/example/ios
61+
set -o pipefail
62+
rm -f build
63+
xcodebuild -arch x86_64 -sdk iphonesimulator12.2 -workspace ./RNOpenALPRExample.xcworkspace -scheme RNOpenALPRExample | xcpretty -c
64+
fi
65+
- |
66+
if [ "$TRAVIS_OS_NAME" == "linux" ]; then
67+
cd $TRAVIS_BUILD_DIR/example/android
68+
pwd
69+
ls -la
70+
chmod +x /.gradlew
71+
TERM=dumb ./gradlew assemble
72+
fi
73+
deploy:
74+
provider: npm
75+
email: robert.sasak@gmail.com
76+
api_key:
77+
secure: TO-BE-ADDED-LATER
78+
on:
79+
tags: true
80+
repo: RobertSasak/react-native-openalpr
81+
branch: master

Example/android/app/BUCK

Lines changed: 0 additions & 66 deletions
This file was deleted.

Example/android/app/proguard-rules.pro

Lines changed: 0 additions & 66 deletions
This file was deleted.

Example/android/app/src/main/java/com/awesomeproject/MainActivity.java

Lines changed: 0 additions & 15 deletions
This file was deleted.

Example/android/app/src/main/java/com/awesomeproject/MainApplication.java

Lines changed: 0 additions & 44 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)