Skip to content

Instantly share code, notes, and snippets.

View NitinPraksash9911's full-sized avatar
🎯
Focusing

Nitin Prakash NitinPraksash9911

🎯
Focusing
View GitHub Profile
@NitinPraksash9911
NitinPraksash9911 / UnzipUtils.kt
Last active December 22, 2024 12:45
Unzipping file in android/kotlin
import java.io.*
import java.util.zip.ZipFile
/**
* UnzipUtils class extracts files and sub-directories of a standard zip file to
* a destination directory.
*
*/
object UnzipUtils {
@Singleton
class ApiFactory @Inject constructor() {
/**
* [apiBaseUrl]
* because we are adding it from parameter in the request
* */
private val apiBaseUrl = BuildConfig.BASE_URL
private var retrofit: Retrofit? = null
@NitinPraksash9911
NitinPraksash9911 / Automate Baseline profiler generator script
Last active October 19, 2022 16:23
This can be used whenever releasing app we have to generate the baseline profile for app-startup time improvement so this script remove overhead of manual doing all the stesp
#!/bin/sh
# this will exit the script if any command fails
set -e
set -o pipefail
## FOLLOW THIS STEPS FIRS TO SET EVN VARIABLE FOR THE FOLLOWING COMMANDS
# Set android home path
export ANDROID_HOME=~/Library/Android/sdk