1.4 KiB
1.4 KiB
How to add elib to a prebuilt project
-
Add repository url in root of the project
build.gradle
or insettings.gradle
. You can look where other repositories are added. Some common repositories aregoogle()
,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")
-
-
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")
- Groovy
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