-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed unnecessary context from factories and providers
- Loading branch information
1 parent
c0551aa
commit 215ea6d
Showing
3 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
4 changes: 1 addition & 3 deletions
4
...ve-nongms/src/main/java/com/omh/android/storage/api/drive/nongms/OmhStorageFactoryImpl.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
package com.omh.android.storage.api.drive.nongms | ||
|
||
import android.content.Context | ||
import com.omh.android.auth.api.OmhAuthClient | ||
import com.omh.android.storage.api.OmhStorageClient | ||
import com.omh.android.storage.api.OmhStorageFactory | ||
|
||
class OmhStorageFactoryImpl : OmhStorageFactory { | ||
|
||
override fun getStorageClient( | ||
context: Context, | ||
authClient: OmhAuthClient | ||
): OmhStorageClient = OmhStorageClientImpl.Builder().build(context, authClient) | ||
): OmhStorageClient = OmhStorageClientImpl.Builder().build(authClient) | ||
} |
3 changes: 1 addition & 2 deletions
3
storage-api/src/main/java/com/omh/android/storage/api/OmhStorageFactory.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package com.omh.android.storage.api | ||
|
||
import android.content.Context | ||
import com.omh.android.auth.api.OmhAuthClient | ||
|
||
interface OmhStorageFactory { | ||
|
||
fun getStorageClient(context: Context, authClient: OmhAuthClient): OmhStorageClient | ||
fun getStorageClient(authClient: OmhAuthClient): OmhStorageClient | ||
} |
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