This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Reference: https://stackoverflow.com/a/78230014 | |
*/ | |
@Composable | |
fun ColorFilterSample(isActive: Boolean, iconResId: Int) { | |
val brightness = if (isActive) 0f else 0f | |
val contrast = if (isActive) 1f else 0.5f | |
val saturation = if (isActive) 1f else 0.7f | |
val filter = ColorFilter.colorMatrix( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create remote branch when no branch exists when 'git push' performed | |
git config --global --add --bool push.autoSetupRemote true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildTypes { | |
release { | |
isDebuggable = false | |
isMinifyEnabled = true | |
proguardFiles( | |
getDefaultProguardFile("proguard-android-optimize.txt"), | |
"proguard-rules.pro" | |
) | |
configure<CrashlyticsExtension> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private const val KEY_LAST_ACCESS = "KEY_LAST_ACCESS" | |
private const val KEY_SENT_EVENT = "KEY_SENT_EVENT" | |
private const val KEY_RETENTION_DAY_COUNT = "KEY_RETENTION_DAY_COUNT" | |
class SingularConditionEventChecker @Inject constructor( | |
private val logger: AnalyticsLogger, | |
private val preferenceRepository: PreferencesRepository, | |
@Dispatcher(IO) private val ioDispatcher: CoroutineDispatcher | |
) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Composable | |
fun BounceAnimationOnTouch( | |
touchedPoint: Offset, | |
contentSize: Dp, | |
content: @Composable BoxScope.(modifier: Modifier) -> Unit, | |
) { | |
val isVisible = remember { mutableStateOf(false) } | |
val animatable = remember { Animatable(0f) } | |
val duration = 500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Submit a new Release Build to Firebase App Distribution" | |
lane :publishProdRelease do | |
gradle( | |
task: 'assemble', | |
flavor: "prod", | |
build_type: 'Release', | |
print_command: true, | |
properties: { | |
"android.injected.signing.store.file" => ENV["KEYSTORE_FILE"], | |
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Decode Keystore File | |
uses: timheuer/base64-to-file@v1 | |
id: android_keystore | |
with: | |
fileName: "android_keystore.keystore" | |
encodedString: ${{ secrets.RELEASE_KEY_APK }} | |
- run: fastlane publishProdRelease | |
env: | |
KEYSTORE_FILE : ${{ steps.android_keystore.outputs.filePath }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test distribution to Firebase | |
on: workflow_dispatch | |
jobs: | |
build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup JDK 17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Submit a new Release Build to Firebase App Distribution" | |
lane :publishDevDebug do | |
devDebugBuild | |
firebase_app_distribution( | |
service_credentials_file: "firebase_credentials.json", | |
app: ENV["APP_ID"], | |
groups: "QA", | |
release_notes: "Test version of devDebug build." | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "devDebug apk Build" | |
lane :devDebugBuild do | |
gradle( | |
task: "assemble", | |
flavor: "dev", | |
build_type: "Debug" | |
) | |
end |
NewerOlder