Create provider_paths.xml in res/xml folder and write below code in it.
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">| -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; |
| @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 | |
| ) | |
| ) |
| 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. |
| 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 { |
| suspend fun downloadFile(url: String, | |
| downloadFile: File, | |
| downloadProgressFun: (bytesRead: Long, contentLength: Long, isDone: Boolean) -> Unit) { | |
| async(CommonPool) { | |
| val request = with(Request.Builder()) { | |
| url(url) | |
| }.build() | |
| val client = with(OkHttpClient.Builder()) { | |
| addNetworkInterceptor { chain -> |
| /* | |
| * Copyright (C) 2008 The Android Open Source Project | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| import java.io.DataOutputStream; | |
| import java.io.IOException; | |
| import java.io.OutputStream; | |
| import java.net.Socket; | |
| public class Client { | |
| public static void main(String[] args) throws IOException { | |
| // need host and port, we want to connect to the ServerSocket at port 7777 | |
| Socket socket = new Socket("localhost", 7777); | |
| System.out.println("Connected!"); |
| package net.eldiosantos.testes.controller; | |
| import java.util.regex.Matcher; | |
| import java.util.regex.Pattern; | |
| public class EmailValidator { | |
| private final String emailValidationPattern = "[a-z0-9!#$%&\'*+/=?^_\'{|}~-]+(?:.[a-z0-9!#$%&\'*+/=?^_\'{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?"; | |
| public static void main(String[] args) { |
| import android.annotation.TargetApi | |
| import android.content.BroadcastReceiver | |
| import android.content.Context | |
| import android.content.Intent | |
| import android.content.IntentFilter | |
| import android.net.* | |
| import android.os.Build | |
| import androidx.annotation.RequiresApi | |
| import androidx.lifecycle.LiveData |