Skip to content

farsroidx pre-built codes for faster and easier Android app development.

License

Notifications You must be signed in to change notification settings

farsroidx/andromeda-foundation

Repository files navigation

Andromeda-Foundation Android Kotlin

A library for using pre-built codes

GitHub repo size

Installation:

1. Add Jitpack Maven:

in settings.gradle:
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        .
        .
        ------> maven { url 'https://jitpack.io' }
    }
}
in settings.gradle.kts:
@Suppress("UnstableApiUsage")
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        .
        .
        ------> maven(url = "https://jitpack.io")
    }
}

2. Copy the following line in section dependencies in file build.gradle of module app and replace it with LATEST_VERSION according to the latest version in the repository:

LATEST_VERSION:

in build.gradle:
dependencies {
    implementation 'com.github.farsroidx:andromeda-foundation:🔝LATEST_VERSION🔝'
}
in build.gradle.kts:
dependencies {
    implementation("com.github.farsroidx:andromeda-foundation:🔝LATEST_VERSION🔝")
}

3. Adding the following rules to use R8 and proguard in proguard-rules.pro:

-dontwarn java.lang.invoke.StringConcatFactory

# Keep all classes and interfaces in ir.farsroidx.m31 package
-keep class ir.farsroidx.m31.** { *; }

# Keep all fields and methods in ir.farsroidx.m31 package
-keepclassmembers class ir.farsroidx.m31.** { *; }

# Keep all extension functions in ir.farsroidx.m31 package
-keepclassmembers class ir.farsroidx.m31.** {
    public <methods>;
}

Ask Me Anything !