https://github.com/KurdTt/multimodule-android-libraries
Example of multi module Android libraries project.
https://github.com/KurdTt/multimodule-android-libraries
Last synced: about 2 months ago
JSON representation
Example of multi module Android libraries project.
- Host: GitHub
- URL: https://github.com/KurdTt/multimodule-android-libraries
- Owner: KurdTt
- Created: 2023-01-13T18:15:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-13T18:16:23.000Z (over 2 years ago)
- Last Synced: 2024-11-07T11:43:52.466Z (7 months ago)
- Language: Kotlin
- Size: 63.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-list - KurdTt/multimodule-android-libraries - Example of multi module Android libraries project. (Kotlin)
README
# Multi module Android libraries
Simple multi module Android project that contains:
- ๐ Modules defined as Android library.
- โ๏ธCommon gradle settings such as min/target SDK, version, jvm target, etc.
- ๐ One task to deploy all modules to local/remote repository.## Module definition
In the easy way You can provide all dependencies with few lines of code:
```
dependencies {
// Common dependencies
with projectDependencies
// Other
implementation project(':common')
...
```Or decide if current module should be deployed or not with:
```
with mavenPublisher
```## Deploy modules
To deploy all modules to repository, type `gradle clean build publishToMavenLocal` in root
directory.
It should create artefacts in Your local repository. You can build artefacts and import it
as `implementation 'com.pk.example.multimodule:feature:1.0.0-SNAPSHOT`.**Remember to not put Your snapshot dependencies in real development!**
Other:
- Group ID is defined at top of `config.gradle`.
- Artefact name is defined in `gradle.properties` of every module.
- Version is common to every library included in project and defined in root `gradle.properties`