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 okhttp3.OkHttpClient | |
import java.security.cert.CertificateException | |
import javax.net.ssl.SSLContext | |
import javax.net.ssl.TrustManager | |
import javax.net.ssl.X509TrustManager | |
class UnsafeOkHttpClient { | |
companion object { | |
fun getUnsafeOkHttpClient(): OkHttpClient.Builder { | |
try { |
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 com.apollographql.apollo3.ApolloClient | |
import com.apollographql.apollo3.api.ApolloResponse | |
import com.apollographql.apollo3.api.Mutation | |
import com.apollographql.apollo3.api.Operation | |
import com.apollographql.apollo3.api.Query | |
import com.apollographql.apollo3.exception.ApolloException | |
import timber.log.Timber | |
/** | |
* This class handles the execution of GraphQL queries and mutations using the Apollo client. |
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 kotlinx.coroutines.* | |
// this code snipped from Vengatesh M.’s Post https://www.linkedin.com/feed/update/urn:li:activity:7150818581406994432/ | |
fun main() { | |
val viewmodel = ViewModel() | |
runBlocking { | |
viewmodel.getDataFromApi() | |
} | |
} | |
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
@Composable | |
fun FlipActionScreen() { | |
var flippedState by remember { mutableStateOf(false) } | |
val rotationY by animateFloatAsState( | |
targetValue = if (flippedState) 180f else 0f, | |
animationSpec = spring( | |
dampingRatio = Spring.DampingRatioHighBouncy, | |
stiffness = Spring.StiffnessVeryLow | |
) | |
) |
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
-keepclassmembers class com.google.android.gms.dynamite.DynamiteModule { | |
** MODULE_ID; | |
** MODULE_VERSION; | |
** sClassLoader; | |
} | |
-keepclassmembers class com.google.android.gms.internal.in { | |
** mOrigin; | |
** mCreationTimestamp; | |
** mName; | |
** mValue; |
OlderNewer