LeOS-GSI/packages/apps/elib
harvey186 7d5100764a a15 2024-10-24 09:22:44 +02:00
..
gradle/wrapper a15 2024-10-24 09:22:44 +02:00
lib a15 2024-10-24 09:22:44 +02:00
prebuilt/com.google.android.material_material a15 2024-10-24 09:22:44 +02:00
sample a15 2024-10-24 09:22:44 +02:00
.gitignore a15 2024-10-24 09:22:44 +02:00
.gitlab-ci.yml a15 2024-10-24 09:22:44 +02:00
Android.bp a15 2024-10-24 09:22:44 +02:00
LICENSE a15 2024-10-24 09:22:44 +02:00
README.md a15 2024-10-24 09:22:44 +02:00
build.gradle a15 2024-10-24 09:22:44 +02:00
gradle.properties a15 2024-10-24 09:22:44 +02:00
gradlew a15 2024-10-24 09:22:44 +02:00
gradlew.bat a15 2024-10-24 09:22:44 +02:00
settings.gradle a15 2024-10-24 09:22:44 +02:00

README.md

How to add elib to a prebuilt project

  1. Add repository url in root of the project build.gradle or in settings.gradle. You can look where other repositories are added. Some common repositories are google(), mavenCentral(). You can add the below line

    • For groovy

      maven { url 'https://gitlab.e.foundation/api/v4/groups/9/-/packages/maven' }
      
    • For kotlin

      maven("https://gitlab.e.foundation/api/v4/groups/9/-/packages/maven")
      
  2. Implement elib in the app module or in the module where you want to import elib. Can add this line

    • Groovy
      implementation 'foundation.e:elib:0.0.1-alpha11'
      
    • Kotlin
      implementation("foundation.e:elib:0.0.1-alpha11")
      

Current version is 0.0.1-alpha11 if there is newer version available then that can be added.

An example of elib integration can be found here

How to add elib to a system project

There can be some cases where the app you want to add elib to is not a prebuilt project in those cases elib needs to be added to the makefile or blueprint of the project (Android.mk or Android.bp)

An example of it can be found here