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
plugins { | |
`android-base-app` | |
`android-base` | |
id("io.fabric") | |
} | |
android { | |
defaultConfig { | |
versionCode = 20 | |
versionName = "1.6.3" |
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 OneDay = 1000 * 60 * 60 * 24 // millisecond * second * minute * hour |
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
fun Modifier.dormShadow( | |
... | |
) = this.drawBehind { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { | |
val transparentColor = | |
... | |
} | |
} |
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
@Suppress("DEPRECATION") | |
private fun vibrateOnMealCardPaging( | |
context: Context, | |
) { | |
val vibrator = context.getSystemService(Context.VIBRATOR_SERVICE) as Vibrator | |
vibrator.vibrate(1L) | |
} |
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
@ColorInt | |
public static int toArgb(@ColorLong long color) { | |
// ... | |
} |
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
object ProjectProperties { | |
const val ApplicationId = "team.aliens.dms_android" | |
const val VersionCode = 111_14 | |
const val VersionName = "v1.1.1 alpha-4" | |
const val CompileSdkVersion = 33 | |
const val MinSdkVersion = 23 // changed to 23, from 26 | |
const val TargetSdkVersion = 33 | |
} |
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
@DormDeprecated | |
fun Modifier.dormShadow( | |
color: Color, | |
alpha: Float = 0.2f, | |
borderRadius: Dp = 0.dp, | |
shadowRadius: Dp = 10.dp, | |
offsetY: Dp = 0.dp, | |
offsetX: Dp = 0.dp, | |
) = this.drawBehind { | |
val transparentColor = |
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
@DormDeprecated | |
fun Modifier.dormShadow( | |
color: Color, | |
alpha: Float = 0.2f, | |
borderRadius: Dp = 0.dp, | |
shadowRadius: Dp = 10.dp, | |
offsetY: Dp = 0.dp, | |
offsetX: Dp = 0.dp, | |
) = this.drawBehind { | |
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { |
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
Gradle Version Catalog | buildSrc | ||
---|---|---|---|
버전 검색 | 자동 | 수동 | |
버전 번호 변경 후 Rebuild | 버전의 영향을 받는 모듈만 | 프로젝트의 모든 모듈 |
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
/** | |
* copied from jetcaster, android compose samples | |
* https://github.com/android/compose-samples/blob/main/Jetcaster/app/src/main/java/com/example/jetcaster/ui/JetcasterAppState.kt | |
*/ | |
@Suppress("DEPRECATION") | |
fun checkIfOnline(): Boolean { | |
val cm = ContextCompat.getSystemService(context, ConnectivityManager::class.java) | |
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { | |
val capabilities = cm?.getNetworkCapabilities(cm.activeNetwork) ?: return false |
OlderNewer