Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Release v2.0.5

Compare
Choose a tag to compare
@amirisback amirisback released this 25 Sep 09:28
· 12 commits to master since this release

Version Release

This Is Latest Release

$version_release = 2.0.5

What's New??

* Update Code *
* Enhance Performance *
* Update: FrogoAdmobActivity to FrogoActivity *
* All Frogo Core Android Development *
* Please Re Import Class and Function *
* Renaming Package frogosdk to sdk *
* Update Android Gradle Plugin 7.0.2 *
* Delete Unused Import and Resources *
* Frogo Music *
* Migrate groovy to Kotlin DSL *

Download this project

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

<Option 1> Groovy Gradle

// Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

<Option 2> Kotlin DSL Gradle

// Add it in your root build.gradle.kts at the end of repositories:

allprojects {
    repositories {
        ...
        maven { url = uri("https://jitpack.io") }
    }
}

Step 2. Add the dependency (build.gradle : Module)

#### <Option 1> Groovy Gradle

    dependencies {
        // library frogo-sdk
        implementation 'com.github.frogobox:frogo-android-sdk:2.0.5'
    }

#### <Option 2> Kotlin DSL Gradle

    dependencies {
        // library frogo-sdk
        implementation("com.github.frogobox:frogo-android-sdk:2.0.5")
    }

Step 3. Function from this SDK

All Class SDK

FrogoActivity
FrogoApiCallback
FrogoApiClient
FrogoApiModel
FrogoComposeActivity
FrogoConstant
FrogoDate
FrogoFragment
FrogoFunc
FrogoLiveEvent
FrogoLocalCallback
FrogoMusic
FrogoNavigation
FrogoPreference

FrogoActivity

fun setupDetailActivity(title: String)

fun setupChildFragment(frameId: Int, fragment: Fragment)

fun showToast(message: String)

fun setupEventEmptyView(view: View, isEmpty: Boolean)

fun setupEventProgressView(view: View, progress: Boolean)

fun checkExtra(extraKey: String): Boolean

fun <Model> baseFragmentNewInstance(
    fragment: FrogoFragment<*>,
    argumentKey: String,
    extraDataResult: Model
)

fun verifySignature()

fun readSignature()

fun verifyInstallerId()

fun verifyUnauthorizedApps()

fun verifyStores()

fun verifyDebug()

fun verifyEmulator()

fun showApkSignatures()

FrogoFragment

    fun setupChildFragment(frameId: Int, fragment: Fragment)

    fun checkArgument(argsKey: String): Boolean

    fun setupEventEmptyView(view: View, isEmpty: Boolean)

    fun setupEventProgressView(view: View, progress: Boolean)

    fun showToast(message: String)

    fun <Model> baseNewInstance(argsKey: String, data: Model)

FrogoFunc

    fun createFolderPictureVideo()

    fun getVideoFilePath(): String

    fun createDialogDefault(
        context: Context,
        title: String,
        message: String,
        listenerYes: () -> Unit,
        listenerNo: () -> Unit
    )

    fun noAction(): Boolean

    fun randomNumber(start: Int, end: Int): Int

    fun isNetworkAvailable(context: Context): Boolean?

    fun <T> fetchRawData(mContext: Context, sourceRaw: Int): ArrayList<T>

    fun <T> fetchRawData(mContext: Context, sourceRaw: Int, shuffle: Boolean): ArrayList<T>

    fun getJsonFromAsset(context: Context, filename: String): String?

    fun <T> getArrayFromJsonAsset(context: Context, filename: String): MutableList<T>

    fun getDrawableString(context: Context, nameResource: String): Int

    fun getRawString(context: Context, nameResource: String): Int

FrogoMusic

    fun playMusic(context: Context, musicFile: Int)

    fun stopMusic()

    fun pauseMusic()

FrogoDate

    fun getTimeStamp(): String

    fun getTimeNow(): String

    fun getCurrentDate(format: String): String

    fun dateTimeToTimeStamp(date: String?): Long

    fun getCurrentUTC(): String

    fun timetoHour(date: String?): String

    fun dateTimeTZtoHour(date: String?): String

    fun DateTimeMonth(date: String?): String

    fun dateTimeSet(date: String?): String

    fun dateTimeProblem(date: String?): String

    fun getTimeAgo(time: Long): String?

    fun compareDate(newDate: String): String?

    fun messageDate(newDate: String): String?

    fun getDataChat(time: Long): String?

    fun convertClassificationDate(string: String?): String

    fun convertDateNewFormat(string: String?): String

    fun convertLongDateNewFormat(string: String?): String

    fun revertFromLongDateNewFormat(string: String?): String

    fun convertTargetDate(string: String?): String

    fun diffTime(timeStart: String, timeEnd: String): Long

FrogoComposeActivity

In Progress Development