This file contains hidden or 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
| [ | |
| { | |
| "id": 1, | |
| "name": "Afghanistan", | |
| "isoAlpha2": "AF", | |
| "isoAlpha3": "AFG", | |
| "isoNumeric": 4, | |
| "currency": { | |
| "code": "AFN", | |
| "name": "Afghani", |
This file contains hidden or 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
| package com.compose.playground.domain.network | |
| import android.content.Context | |
| import android.net.ConnectivityManager | |
| import android.net.Network | |
| import android.net.NetworkCapabilities | |
| import androidx.core.content.getSystemService | |
| import com.compose.playground.domain.ErrorIgnoringScope | |
| import kotlinx.coroutines.channels.awaitClose | |
| import kotlinx.coroutines.channels.trySendBlocking |
This file contains hidden or 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
| import android.app.AlarmManager | |
| import android.app.PendingIntent | |
| import android.content.BroadcastReceiver | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.os.Handler | |
| import android.os.Looper | |
| import android.util.SparseArray | |
| import androidx.core.content.getSystemService | |
| import androidx.core.util.forEach |
This file contains hidden or 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
| class Dimens { | |
| object Padding { | |
| val xSmall = 4.dp | |
| val small = 8.dp | |
| val medium = 16.dp | |
| val large = 24.dp | |
| val xlarge = 32.dp | |
| val xxLarge = 40.dp | |
| val xxxLarge = 48.dp |
This file contains hidden or 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 lateinit var binding: ActivityMainBinding | |
| lateinit var front_animation: AnimatorSet | |
| lateinit var back_animation: AnimatorSet | |
| var isFront = false | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| val splashScreen = installSplashScreen() | |
| super.onCreate(savedInstanceState) | |
| binding = DataBindingUtil.setContentView(this, R.layout.activity_main) |