Just the basic structure of a kotlin android project. Still a WIP.
The idea is to follow up Android clean architecture approach:
The build system is based on gradle, so for instance the project can be easily imported to both Android Studion and Intellij.
Tests are split up into Acceptance and Unit tests and essentially follow up the approach in this article I have written:
For now, the only way to use this WIP is by cloning the repo and manually setting it up. Go to the next section to see how to get started with the main files involved in the configuration.
Once the repository is cloned, follow this up:
So far, these dependencies have been added:
Here are some useful Gradle/adb commands:
./gradlew clean build- Build the entire app and execute unit and integration tests plus lint check.
./gradlew installDebug- Install the debug apk on the current connected device.
./gradlew deployDebug- Install and executes the debug apk on the current connected device.
./gradlew runUnitTests- Execute unit and integration tests.
./gradlew runAcceptanceTests- Execute acceptance tests.
Copyright 2017 Fernando Cejas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.