Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

Commit

Permalink
feat(android): make android gradle check work
Browse files Browse the repository at this point in the history
  • Loading branch information
sibelius committed Apr 15, 2018
1 parent edc7295 commit 1c7f231
Show file tree
Hide file tree
Showing 3 changed files with 3,676 additions and 56 deletions.
16 changes: 10 additions & 6 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,21 @@ repositories {
url 'https://maven.google.com'
}
maven { url "https://jitpack.io" }
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
}

dependencies {
def googlePlayServicesVersion = rootProject.hasProperty('googlePlayServicesVersion') ? rootProject.googlePlayServicesVersion : DEFAULT_GOOGLE_PLAY_SERVICES_VERSION
def supportLibVersion = rootProject.hasProperty('supportLibVersion') ? rootProject.supportLibVersion : DEFAULT_SUPPORT_LIBRARY_VERSION

compile 'com.facebook.react:react-native:+'
compile "com.google.zxing:core:3.2.1"
compile "com.drewnoakes:metadata-extractor:2.9.1"
compile "com.google.android.gms:play-services-vision:$googlePlayServicesVersion"
compile "com.android.support:exifinterface:$supportLibVersion"
compileOnly 'com.facebook.react:react-native:+'
implementation "com.google.zxing:core:3.2.1"
implementation "com.drewnoakes:metadata-extractor:2.9.1"
implementation "com.google.android.gms:play-services-vision:$googlePlayServicesVersion"
implementation "com.android.support:exifinterface:$supportLibVersion"

compile 'com.github.react-native-community:cameraview:eb9f726215bbbfcc03a54db92e480d4d02e0c001'
implementation 'com.github.react-native-community:cameraview:eb9f726215bbbfcc03a54db92e480d4d02e0c001'
}
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-react": "^7.3.0",
"eslint-plugin-react-native": "^3.2.0",
"generate-changelog": "1.7.0",
"husky": "^0.14.3",
"idx": "2.2.0",
"lint-staged": "^5.0.0",
"minimist": "1.2.0",
"pre-commit": "^1.2.2",
"prettier": "^1.9.2",
"generate-changelog": "1.7.0",
"simple-git": "1.89.0",
"idx": "2.2.0",
"minimist": "1.2.0"
"react-native": "^0.55.2",
"simple-git": "1.89.0"
},
"homepage": "https://github.com/react-native-community/react-native-camera",
"keywords": [
Expand All @@ -48,7 +49,6 @@
]
},
"main": "src/index.js",
"types": "types",
"nativePackage": true,
"pre-commit": "lint:staged",
"repository": {
Expand All @@ -60,9 +60,10 @@
"lint": "eslint src",
"lint:staged": "lint-staged",
"prettier": "prettier --write --single-quote true --trailing-comma all --print-width 100",
"release:version": "node ./changelog --version $VERSION && git push origin && git push origin --follow-tags",
"release:major": "node ./changelog --major && npm version major && git push origin && git push origin --follow-tags",
"release:minor": "node ./changelog --minor && npm version minor && git push origin && git push origin --follow-tags",
"release:patch": "node ./changelog --patch && npm version patch && git push origin && git push origin --follow-tags"
}
"release:patch": "node ./changelog --patch && npm version patch && git push origin && git push origin --follow-tags",
"release:version": "node ./changelog --version $VERSION && git push origin && git push origin --follow-tags"
},
"types": "types"
}
Loading

0 comments on commit 1c7f231

Please sign in to comment.