Contributing¶
The project is still in its early stages. We are not actively seeking external contributions at this time, but some small contributions are welcome.
Android & Kotlin multiplatform¶
Set up Android Studio¶
Install Android Studio version Arctic Fox (2020.3.1) Canary 6
Launch sample apps¶
Add or edit the local.properties
file to include the following properties:
trafi.apiBaseUrl=https\://YOUR-BASE-URL-HERE.trafi.com/
trafi.apiKey=YOUR-API-KEY-HERE
Update Android screenshot tests¶
Shot is used to test and record new screenshots. To update screenshots, run the “Record Android screenshot tests” workflow, specifying the branch on which new / updated screenshots should be generated and committed on.
You may want to record new screenshots or run the tests locally.
Start the emulator.
~/Library/Android/sdk/emulator/emulator @Nexus_6_API_28 -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim
The used device currently should be set as Nexus 6 and architecture should be x86, otherwise generated screenshots will have minuscule differences compared to the ones generated by the GitHub workflow.Record new / updated screenshots.
./gradlew executeScreenshotTests -Precord
Run screenshot tests to verify.
./gradlew executeScreenshotTests
Commit & push the new / updated screenshots.