Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
archive

GitHub Action

open-build-src

2.0.8

open-build-src

archive

open-build-src

buildSrc Library for build.gradle.kts setup

Installation

Copy and paste the following snippet into your .yml file.

              

- name: open-build-src

uses: frogobox/[email protected]

Learn more about this action in frogobox/open-build-src

Choose a version

open-build-src

  • Library for constant data buildSrc
  • Library for calling constant variable for build.gradle.kts
  • Develop using IntelliJ IDEA
  • The requirement must already be using buildSrc
  • License Click Here
  • Privacy Policy Click Here

Repository for testing build from jitpack.io

  • Red : Failed
  • Green : Success / Pass

Version Release

This Is Latest Release

$version_release = 2.0.8

What's New??

* Available for buildSrc Kotlin DSL *
* Adding Func for custom version *
* implementation(Androidx.appCompat) can call like this implementation(Androidx.appCompat("1.4.1")) *
* Migrate to stable version *
object Version {

    object Gradle {
        const val minSdk = 21
        const val compileSdk = 33
        const val targetSdk = compileSdk
    }

    object Ad {
        const val unityAds = "4.5.0" // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
        const val startIo = "4.10.6" // https://support.start.io/hc/en-us/articles/360014774799-Integration-via-Maven
    }

    object Androidx {
        const val appCompat = "1.6.0-rc01" // https://developer.android.com/jetpack/androidx/releases/appcompat
        const val constraintLayout = "2.1.4" // https://developer.android.com/jetpack/androidx/releases/constraintlayout
        const val constraintLayoutCompose = "1.0.1" // https://developer.android.com/jetpack/androidx/releases/constraintlayout
        const val collection = "1.2.0" // https://developer.android.com/jetpack/androidx/releases/collection
        const val savedState = "1.2.0" // https://developer.android.com/jetpack/androidx/releases/savedstate
        const val viewPager = "1.0.0" // https://developer.android.com/jetpack/androidx/releases/viewpager
        const val viewPager2 = "1.0.0" // https://developer.android.com/jetpack/androidx/releases/viewpager2
        const val preference = "1.2.0" // https://developer.android.com/jetpack/androidx/releases/preference
        const val core = "1.9.0" // https://developer.android.com/jetpack/androidx/releases/core
        const val liveCycle = "2.5.1" // https://developer.android.com/jetpack/androidx/releases/lifecycle
        const val liveCycleArch = "2.1.0" // https://developer.android.com/jetpack/androidx/releases/lifecycle
        const val room = "2.4.3" // https://developer.android.com/jetpack/androidx/releases/room
        const val work = "2.7.1" // https://developer.android.com/jetpack/androidx/releases/work
        const val activityKtx = "1.6.1" // https://developer.android.com/jetpack/androidx/releases/activity
        const val fragmentKtx = "1.5.5" // https://developer.android.com/jetpack/androidx/releases/fragment
        const val navigationKtx = "2.5.3" // https://developer.android.com/jetpack/androidx/releases/navigation
        const val recyclerView = "1.2.1" // https://developer.android.com/jetpack/androidx/releases/recyclerview
        const val recyclerViewSelection = "1.1.0" // https://developer.android.com/jetpack/androidx/releases/recyclerview
        const val camerax = "1.2.0" // https://developer.android.com/jetpack/androidx/releases/camera#kts
        const val biometric = "1.1.0" // https://developer.android.com/jetpack/androidx/releases/biometric
        const val annotation = "1.5.0" // https://developer.android.com/jetpack/androidx/releases/annotation
        const val annotationExperimental = "1.5.0" // https://developer.android.com/jetpack/androidx/releases/annotation
        const val swipeRefreshLayout = "1.1.0" // https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout

        // Compose Version
        const val composeActivity = "1.6.1" // https://androidx.tech/artifacts/activity/activity-compose/
        const val composeCompiler = "1.3.2" // https://developer.android.com/jetpack/androidx/releases/compose
        const val compose = "1.3.2" // https://developer.android.com/jetpack/androidx/releases/compose
        const val composeMaterial3 = "1.0.0-alpha14" // https://developer.android.com/jetpack/androidx/releases/compose
        const val composeNavigation = "2.5.3" // https://androidx.tech/artifacts/navigation/navigation-compose/
        const val composeHiltNavigation = "1.0.0" // https://developer.android.com/jetpack/androidx/releases/hilt
        const val composeMultiPlatform = "1.2.2" // https://github.com/JetBrains/compose-jb

        // TestImplementation
        const val junit4 = "4.13.2" // https://junit.org/junit4/

        // androidTestImplementation
        const val runner = "1.3.0"
        const val junit = "1.1.3"
        const val espressoCore = "3.4.0"
    }

    object Google {
        const val accompanist = "0.28.0" // https://github.com/google/accompanist
        const val material = "1.8.0-rc01" // https://github.com/material-components/material-components-android/releases
        const val gson = "2.10.1" // https://github.com/google/gson
        const val admob = "21.4.0" // https://developers.google.com/admob/android/sdk
        const val userMessagingPlatform = "2.0.0" // https://developers.google.com/admob/ump/android/quick-start#install_with_gradle
        const val hilt = "2.44.2" // https://dagger.dev/hilt/gradle-setup
        const val adMediationUnityAd = "4.5.0.0" // https://developers.google.com/admob/android/mediation/unity#step_3_import_the_unity_ads_sdk_and_adapter
    }

    object JetBrains {
        // https://developer.android.com/jetpack/androidx/releases/compose-kotlin - Compability For Compose Version
        const val kotlin = "1.8.0" // https://kotlinlang.org/docs/releases.html#release-details
        const val coroutines = "1.6.4" // https://github.com/Kotlin/kotlinx.coroutines
    }

    object Util {
        const val okHttp = "4.10.0" // https://square.github.io/okhttp/ - https://search.maven.org/search?q=g:com.squareup.okhttp3
        const val retrofit = "2.9.0" // https://github.com/square/retrofit

        const val rxAndroid3 = "3.0.2" // https://github.com/ReactiveX/RxAndroid
        const val rxKotlin3 = "3.0.1" // https://github.com/ReactiveX/RxKotlin
        const val rxJava3 = "3.1.5" // https://github.com/ReactiveX/RxJava

        const val glide = "4.14.2" // https://github.com/bumptech/glide
        const val chucker = "3.5.2" // https://github.com/ChuckerTeam/chucker
        const val coil = "2.2.2" // https://coil-kt.github.io/coil/compose/

        const val koin = "3.3.2" // https://github.com/InsertKoinIO/koin
        const val koin_android = "3.3.2" // https://github.com/InsertKoinIO/koin
        const val koin_android_compose = "3.4.1" // https://github.com/InsertKoinIO/koin
        const val koin_ktor = "3.3.0" // https://github.com/InsertKoinIO/koin

        const val ktor = "2.2.2" // https://ktor.io/
        const val piracyChecker = "1.2.8" // https://github.com/javiersantos/PiracyChecker
        const val customActivityOnCrash = "2.4.0" // https://github.com/Ereza/CustomActivityOnCrash
    }

}

Download this project

Step 1. Add the JitPack repository to your build file (build.gradle.kts : BuildSrc)

repositories {
    ...
    maven("https://jitpack.io")
}

Step 2. Add the dependency (build.gradle.kts : BuildSrc)

dependencies {
    // library open-build-src
    implementation("com.github.frogobox:open-build-src:2.0.7")
}

Step 3. Usage (Add on your dependencies build.gradle.kts : app)

Androidx Library

  • Version Planted
implementation(Androidx.appCompat)
implementation(Androidx.appCompatResources)
implementation(Androidx.activityKtx)
implementation(Androidx.fragmentKtx)
implementation(Androidx.constraintLayout)
implementation(Androidx.collection)
implementation(Androidx.savedState)
implementation(Androidx.viewPager)
implementation(Androidx.viewPager2)
implementation(Androidx.recyclerview)
implementation(Androidx.recyclerviewSelection)
implementation(Androidx.preference)
implementation(Androidx.preferenceKtx)
implementation(Androidx.navigationRuntimeKtx)
implementation(Androidx.navigationFragmentKtx)
implementation(Androidx.navigationUiKtx)
  • Custom Version
implementation(Androidx.appCompat("version"))
implementation(Androidx.appCompatResources("version"))
implementation(Androidx.activityKtx("version"))
implementation(Androidx.fragmentKtx("version"))
implementation(Androidx.constraintLayout("version"))
implementation(Androidx.collection("version"))
implementation(Androidx.savedState("version"))
implementation(Androidx.viewPager("version"))
implementation(Androidx.viewPager2("version"))
implementation(Androidx.recyclerview("version"))
implementation(Androidx.recyclerviewSelection("version"))
implementation(Androidx.preference("version"))
implementation(Androidx.preferenceKtx("version"))
implementation(Androidx.navigationRuntimeKtx("version"))
implementation(Androidx.navigationFragmentKtx("version"))
implementation(Androidx.navigationUiKtx("version"))

Androidx Core Library

implementation(Androidx.Core.java)
implementation(Androidx.Core.ktx)
implementation(Androidx.Core.role)
implementation(Androidx.Core.animation)
implementation(Androidx.Core.animationAndroidTest)
implementation(Androidx.Core.googleShortCuts)
implementation(Androidx.Core.remoteViews)
implementation(Androidx.Core.splashScreen)

Androidx Compose Library

implementation(Androidx.Compose.activity)
implementation(Androidx.Compose.ui)
implementation(Androidx.Compose.material)
implementation(Androidx.Compose.uiTooling)
implementation(Androidx.Compose.navigation)
implementation(Androidx.Compose.hiltNavigation)
implementation(Androidx.Compose.uiTestJunit4)
implementation(Androidx.Compose.uiTestManifest)

Androidx Lifecycle Library

implementation(Androidx.Lifecycle.viewmodel)
implementation(Androidx.Lifecycle.viewmodelKtx)
implementation(Androidx.Lifecycle.livedata)
implementation(Androidx.Lifecycle.livedataKtx)
implementation(Androidx.Lifecycle.runtime)
implementation(Androidx.Lifecycle.runtimeKtx)
implementation(Androidx.Lifecycle.viewmodelSavedstate)
implementation(Androidx.Lifecycle.compiler)
implementation(Androidx.Lifecycle.compilerJava8)
implementation(Androidx.Lifecycle.service)
implementation(Androidx.Lifecycle.process)
implementation(Androidx.Lifecycle.reactivestreams)
implementation(Androidx.Lifecycle.reactivestreamsKtx)
implementation(Androidx.Lifecycle.coreTesting)

Androidx Room Library

implementation(Androidx.Room.runtime)
implementation(Androidx.Room.ktx)
implementation(Androidx.Room.rxJava2)
implementation(Androidx.Room.rxJava3)
implementation(Androidx.Room.guava)
implementation(Androidx.Room.paging)
implementation(Androidx.Room.roomTest)
implementation(Androidx.Room.compiler)

Androidx Work Library

implementation(Androidx.Work.runtime)
implementation(Androidx.Work.runtimeKtx)
implementation(Androidx.Work.rxJava2)
implementation(Androidx.Work.gcm)
implementation(Androidx.Work.workAndroidTest)
implementation(Androidx.Work.multiprocess)

Google Library

implementation(Google.accompanist)
implementation(Google.material)
implementation(Google.gson)
implementation(Google.admob)
implementation(Google.userMessagingPlatform)
implementation(Google.adMediationUnityAd)

Hilt

implementation(Google.Hilt.android)
implementation(Google.Hilt.compiler)
implementation(Google.Hilt.hiltAndroidTesting)

JetBrains Library

implementation(JetBrains.coroutinesCore)
implementation(JetBrains.coroutinesAndroid)

Koin Library

implementation(Koin.core)
implementation(Koin.android)
implementation(Koin.androidCompat)
implementation(Koin.androidxWorkManager)
implementation(Koin.androidxCompose)
implementation(Koin.ktor)

testImplementation(Koin.test)

Ktor

implementation(Ktor.clientCore)
implementation(Ktor.clientSerialization)
implementation(Ktor.clientAndroid)
implementation(Ktor.clientMock)

Square Library

implementation(Square.OkHttp.okhttp)
implementation(Square.OkHttp.loggingInterceptor)
implementation(Square.OkHttp.coroutine)

implementation(Square.Retrofit2.retrofit)
implementation(Square.Retrofit2.converterGson)
implementation(Square.Retrofit2.converterJackson)
implementation(Square.Retrofit2.converterMoshi)
implementation(Square.Retrofit2.converterProtobuf)
implementation(Square.Retrofit2.converterWire)
implementation(Square.Retrofit2.converterSimpleXml)
implementation(Square.Retrofit2.converterJAXB)
implementation(Square.Retrofit2.converterScalars)
implementation(Square.Retrofit2.adapterRxJava)
implementation(Square.Retrofit2.adapterRxJava2)
implementation(Square.Retrofit2.adapterRxJava3)

ReactiveX Library

implementation(Reactivex.rxJava3)
implementation(Reactivex.rxAndroid3)
implementation(Reactivex.rxKotlin3)

Ad Library

implementation(Ad.unityAds)

Github Library

implementation(GitHub.glide)
implementation(GitHub.chucker)

kapt(GitHub.glideCompiler)

Util Library

maven(Util.jitpackUrl)

implementation(Util.coil)

Screenshoot (Step 2. Add the dependency (build.gradle.kts : BuildSrc)

Screenshoot (Step 3. Usage (Add on your dependencies build.gradle.kts : app))

Colaborator

Very open to anyone, I'll write your name under this, please contribute by sending an email to me

  • Mail To [email protected]
  • Subject : Github _ [Github-Username-Account] _ [Language] _ [Repository-Name]
  • Example : Github_amirisback_kotlin_admob-helper-implementation

Name Of Contribute

  • Muhammad Faisal Amir
  • Waiting List
  • Waiting List

Waiting for your contribute

Attention !!!

  • Please enjoy and don't forget fork and give a star
  • Don't Forget Follow My Github Account