-
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/add-to-fdroid-main-repo' into develop
- Loading branch information
Showing
242 changed files
with
1,785 additions
and
1,256 deletions.
There are no files selected for viewing
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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions
40
data/src/lite/java/org/cryptomator/data/cloud/CloudContentRepositoryFactories.java
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package org.cryptomator.data.cloud; | ||
|
||
import static java.util.Arrays.asList; | ||
|
||
import org.cryptomator.data.cloud.crypto.CryptoCloudContentRepositoryFactory; | ||
import org.cryptomator.data.cloud.local.LocalStorageContentRepositoryFactory; | ||
import org.cryptomator.data.cloud.s3.S3CloudContentRepositoryFactory; | ||
import org.cryptomator.data.cloud.webdav.WebDavCloudContentRepositoryFactory; | ||
import org.cryptomator.data.repository.CloudContentRepositoryFactory; | ||
import org.jetbrains.annotations.NotNull; | ||
|
||
import java.util.Iterator; | ||
|
||
import javax.inject.Inject; | ||
import javax.inject.Singleton; | ||
|
||
@Singleton | ||
public class CloudContentRepositoryFactories implements Iterable<CloudContentRepositoryFactory> { | ||
|
||
private final Iterable<CloudContentRepositoryFactory> factories; | ||
|
||
@Inject | ||
public CloudContentRepositoryFactories( | ||
S3CloudContentRepositoryFactory s3Factory, // | ||
CryptoCloudContentRepositoryFactory cryptoFactory, // | ||
LocalStorageContentRepositoryFactory localStorageFactory, // | ||
WebDavCloudContentRepositoryFactory webDavFactory) { | ||
|
||
factories = asList(s3Factory, // | ||
cryptoFactory, // | ||
localStorageFactory, // | ||
webDavFactory); | ||
} | ||
|
||
@NotNull | ||
@Override | ||
public Iterator<CloudContentRepositoryFactory> iterator() { | ||
return factories.iterator(); | ||
} | ||
} |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
17 changes: 17 additions & 0 deletions
17
presentation/src/apiKey/java/org/cryptomator/presentation/presenter/DropboxAuthHelper.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.cryptomator.presentation.presenter | ||
|
||
import android.content.Context | ||
import com.dropbox.core.android.Auth | ||
import org.cryptomator.presentation.BuildConfig | ||
|
||
object DropboxAuthHelper { | ||
|
||
fun startOAuth2Authentication(context: Context) { | ||
Auth.startOAuth2Authentication(context, BuildConfig.DROPBOX_API_KEY) | ||
} | ||
|
||
fun getOAuth2Token(): String? { | ||
return Auth.getOAuth2Token() | ||
} | ||
|
||
} |
Oops, something went wrong.