Skip to content

Commit

Permalink
added readme
Browse files Browse the repository at this point in the history
  • Loading branch information
AsithaIndrajith committed Feb 12, 2020
1 parent edba672 commit d5d3fdb
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 95,853 deletions.
Binary file removed 20200119_215910.svg
Binary file not shown.
Binary file removed 20200119_215914.png
Binary file not shown.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Park

Park App is a new mobile app which is capable of spotting animals in Sri Lankan national parks and work as guiding app.

### Contributing to Park-Mobile APP

:+1::tada: First off, thanks for taking the time to contribute! :tada::+1:

1. Fork the [https://github.com/scorelab/park.git].

2. Generate a debug.keystore using `keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000`. (Keystore name: “debug.keystore”, Keystore password: “android”, Key alias: “androiddebugkey”, Key password: “android”, CN: “CN=Android Debug,O=Android,C=US”). (read guide: [https://rnavagamuwa.com/programming/android-programming/android-generate-release-debug-keystores/])

3. Place the copy of debug.keystore in MobileApp/android/app/.

4. Generate the key fingerprints using `keytool -list -v -keystore debug.keystore -alias androiddebugkey -storepass android -keypass android`.

5. Create a firebase project, add an android app to project settings, add sha1 to the project, download the google-services.json file and place in the MobileApp/android/app/. (read guide: [https://invertase.io/oss/react-native-firebase/quick-start/android-firebase-credentials]).

6. Add a config.js file in the MobileApp/src/config/config.js. Content of the file should looks like sampleConfig.js. Extract those client ids from google-services.json. If you are testing with the debug.keystore you only need to add the client id related to debug sha1 in devAndroidClientID. And use it in MobileApp/src/components/GoogleLogin/GoogleLogin.js file's 3rd and 12th line.

7. Create a gradle.properties file in **MobileApp/android/** and paste the content in the MobileApp/android/app/samplegradle.properties.

8. Run `npx install`, `react-native run-android`, `react-native start`

### Pull Request Process

1. Ensure any install or build dependencies are removed.
2. Submit changes as a pull request.

#### NOTE: Do not change the .gitignore file.
1 change: 0 additions & 1 deletion amitswain/Designed logo

This file was deleted.

95,852 changes: 0 additions & 95,852 deletions amitswain/Park by Amitswain.ai

This file was deleted.

Binary file removed amitswain/Park by Amitswain.jpg
Binary file not shown.
Binary file removed amitswain/Park by Amitswain.png
Binary file not shown.

0 comments on commit d5d3fdb

Please sign in to comment.