Contributions to this project must be accompanied by a Contributor License Agreement (CLA). You (or your employer) retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project.
If you or your current employer have already signed the Google CLA (even if it was for a different project), you probably don't need to do it again.
Visit https://cla.developers.google.com/ to see your current agreements or to sign a new one.
This project follows Google's Open Source Community Guidelines.
- Linux, Mac OS X, or Windows.
- git (used for source version control).
- An IDE such as Android Studio or Visual Studio Code.
- addlicense
- google-java-format Version 1.23.0 (used to format Java code).
- clang-format (used to format Objective-C code).
- Ensure all the dependencies described in the README are installed.
- Fork
https://github.com/googlemaps/react-native-driver-sdkinto your own GitHub account. If you already have a fork, and are now installing a development environment on a new machine, make sure you've updated your fork. - If you haven't configured your machine with an SSH key that's known to github, then follow GitHub's directions to generate an SSH key.
git clone git@github.com:<your_name_here>/googlemaps/react-native-driver-sdkgit remote add upstream git@github.com:googlemaps/react-native-driver-sdk(So that you fetch from the master repository, not your clone, when runninggit fetchet al.)
There are several ways to update the library and test your changes locally. The easiest approach is to modify the codes directly from node_modules folder so that any changes can be tested with the sample app right away. Simply open the project directory of the sample app under ios/android.
To do this for iOS, open the workspace file and this will give you access to library.
To do this for Android, open the Android project directly like you would normally open an Android project
To update the Javascript codes, edit the library files inside node_modules
Simply run the sample app to test your changes.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
Please peruse the Typescript style guide, Java style guide, and Objective-C style guide before working on anything non-trivial. These guidelines are intended to keep the code consistent and avoid common pitfalls.
git fetch upstreamgit checkout upstream/master -b <name_of_your_branch>- Start coding!
-
This project uses
lefthookto ensure tests pass before committing. Please configure your environment paths to include the Go binary path foraddlicenseand the Node binary path fornpxin the~/.lefthookrcfile. For more information, refer to the lefthook documentation. -
git commit -a -m "<your informative commit message>"Please make sure all your check-ins have detailed commit messages explaining the patch. When naming the title of your pull request, please follow the Conventional Commits guide. For example, for a fix to the Driver library:
fix: fixed a bug! -
git push origin <name_of_your_branch>
git pull-request(if you are using Hub) or go tohttps://github.com/googlemaps/react-native-driver-sdkand click the "Compare & pull request" button


