Awesome
Tools
- https://developer.android.com/studio/index.html - Android Studio
- https://kotlinlang.org/ - Kotlin
- https://kotlinlang.org/docs/tutorials/kotlin-android.html - Kotlin Plugin
- https://github.com/cloudant/sync-android - Cloudant Sync Android
Shopping List - Android with Kotlin and Cloudant Sync
Shopping List is an Offline First demo [Progressive Web App | hybrid mobile app | native mobile app | desktop app] built using Android Studio, Kotlin, and Cloudant Sync Android. This app is part of a series of Offline First demo apps, each built using a different stack.
Quick Start
- Install Android Studio and the Kotlin Plugin (included in Android Studio 3.0 and up)
- Clone this repo
git clone https://github.com/ibm-watson-data-lab/shopping-list-kotlin-cloudant-sync
- In Android Studio choose File -> New -> Import Project... (if running IntelliJ IDEA choose Project from Existing Sources)
- Select the shopping-list-kotlin-cloudant-sync folder
- Create and start an AVD (or a 3rd party emulator like Genymotion)
- Run the app from Android Studio
Troubleshooting
If a build configuration is not created for you automatically (typically the case in IntelliJ IDEA) create a new build configuration:
- Click Edit Configurations > + > Android App
- Specify a name
- Choose the app module
- Click OK
If you are having trouble building the project you may need to create a local.properties file:
- Create a new file called local.properties in the root of the project
- Add the following line to the file (substitute with your Android SDK directory)
sdk.dir=/Users/me/dev/android-sdk-macosx