Skip to content

Instantly share code, notes, and snippets.

Hiding Secrets / API keys in *.properties files

Note

If you are using convention plugin for your project, solution at the bottom.

Tip

I would recommend creating another secrets.properties file just for ease of use, but this will work for any .properties file.

I will create another secrets.properties file in the project's root directory.

@MAshhal
MAshhal / Motion.kt
Created July 19, 2024 11:57 — forked from JunkFood02/Motion.kt
A music player demo made with Jetpack Compose animation APIs, including shared element transition, list animations, animated content, etc.
package com.example.compose_debug
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.CubicBezierEasing
import androidx.compose.animation.core.Easing
import androidx.compose.animation.core.FastOutLinearInEasing
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.LinearOutSlowInEasing
import androidx.compose.animation.core.PathEasing
@MAshhal
MAshhal / BroadcastReceiver.kt
Created July 19, 2024 07:17
Attach a broadcast receiver in Jetpack Compose
import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import android.content.IntentFilter
import android.os.Build
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf