Skip to content

Commit

Permalink
chore: spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuSanal committed Jul 3, 2024
1 parent 4792655 commit 30e902c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,11 @@
import com.amaze.filemanager.asynchronous.asynctasks.movecopy.MoveFilesTask;
import com.amaze.filemanager.asynchronous.management.ServiceWatcherUtil;
import com.amaze.filemanager.asynchronous.services.CopyService;
import com.amaze.filemanager.database.CloudContract;
import com.amaze.filemanager.database.CloudHandler;
import com.amaze.filemanager.database.SortHandler;
import com.amaze.filemanager.database.TabHandler;
import com.amaze.filemanager.database.UtilsHandler;
import com.amaze.filemanager.database.models.OperationData;
import com.amaze.filemanager.database.models.explorer.CloudEntry;
import com.amaze.filemanager.fileoperations.exceptions.CloudPluginException;
import com.amaze.filemanager.fileoperations.filesystem.OpenMode;
import com.amaze.filemanager.fileoperations.filesystem.StorageNaming;
Expand Down Expand Up @@ -164,7 +162,6 @@
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
Expand Down Expand Up @@ -205,8 +202,6 @@
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.loader.app.LoaderManager;
import androidx.loader.content.CursorLoader;
import androidx.loader.content.Loader;

import io.reactivex.Completable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,31 @@ import com.openmobilehub.android.auth.core.OmhAuthClient
import com.openmobilehub.android.auth.core.OmhAuthProvider

class OMHClientHelper {

companion object {

@Volatile
var instance: OmhAuthClient? = null

@JvmStatic
public fun getGoogleAuthClient(context: Context): OmhAuthClient {

Check warning on line 14 in app/src/main/java/com/amaze/filemanager/utils/omh/OMHClientHelper.kt

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

app/src/main/java/com/amaze/filemanager/utils/omh/OMHClientHelper.kt#L14

The function getGoogleAuthClient is missing documentation.
if (instance == null) {
synchronized(this) {
val omhAuthProvider = OmhAuthProvider.Builder()
.addNonGmsPath(
"com.openmobilehub.android.auth.plugin.google.nongms.presentation.OmhAuthFactoryImpl"
)
.addGmsPath(
"com.openmobilehub.android.auth.plugin.google.gms.OmhAuthFactoryImpl"
)
.build()

instance = omhAuthProvider
.provideAuthClient(
scopes = listOf("openid", "email", "profile"),
clientId = BuildConfig.GOOGLE_CLIENT_ID,
context = context
)
val omhAuthProvider =
OmhAuthProvider.Builder()
.addNonGmsPath(
"com.openmobilehub.android.auth.plugin.google.nongms.presentation.OmhAuthFactoryImpl",
)
.addGmsPath(
"com.openmobilehub.android.auth.plugin.google.gms.OmhAuthFactoryImpl",
)
.build()

instance =
omhAuthProvider
.provideAuthClient(
scopes = listOf("openid", "email", "profile"),
clientId = BuildConfig.GOOGLE_CLIENT_ID,
context = context,
)

instance!!.initialize()
}
Expand Down

0 comments on commit 30e902c

Please sign in to comment.