forked from commons-app/apps-android-commons
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…/github.com/neeldoshii/apps-android-commons into Migrate-Feedback-Module-from-`java`-to-`kt`
- Loading branch information
Showing
80 changed files
with
3,824 additions
and
4,288 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
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
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
23 changes: 0 additions & 23 deletions
23
app/src/main/java/fr/free/nrw/commons/filepicker/Constants.java
This file was deleted.
Oops, something went wrong.
29 changes: 29 additions & 0 deletions
29
app/src/main/java/fr/free/nrw/commons/filepicker/Costants.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,29 @@ | ||
package fr.free.nrw.commons.filepicker | ||
|
||
interface Constants { | ||
companion object { | ||
const val DEFAULT_FOLDER_NAME = "CommonsContributions" | ||
} | ||
|
||
/** | ||
* Provides the request codes for permission handling | ||
*/ | ||
interface RequestCodes { | ||
companion object { | ||
const val LOCATION = 1 | ||
const val STORAGE = 2 | ||
} | ||
} | ||
|
||
/** | ||
* Provides locations as string for corresponding operations | ||
*/ | ||
interface BundleKeys { | ||
companion object { | ||
const val FOLDER_NAME = "fr.free.nrw.commons.folder_name" | ||
const val ALLOW_MULTIPLE = "fr.free.nrw.commons.allow_multiple" | ||
const val COPY_TAKEN_PHOTOS = "fr.free.nrw.commons.copy_taken_photos" | ||
const val COPY_PICKED_IMAGES = "fr.free.nrw.commons.copy_picked_images" | ||
} | ||
} | ||
} |
16 changes: 0 additions & 16 deletions
16
app/src/main/java/fr/free/nrw/commons/filepicker/DefaultCallback.java
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
app/src/main/java/fr/free/nrw/commons/filepicker/DefaultCallback.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,12 @@ | ||
package fr.free.nrw.commons.filepicker | ||
|
||
/** | ||
* Provides abstract methods which are overridden while handling Contribution Results | ||
* inside the ContributionsController | ||
*/ | ||
abstract class DefaultCallback: FilePicker.Callbacks { | ||
|
||
override fun onImagePickerError(e: Exception, source: FilePicker.ImageSource, type: Int) {} | ||
|
||
override fun onCanceled(source: FilePicker.ImageSource, type: Int) {} | ||
} |
7 changes: 0 additions & 7 deletions
7
app/src/main/java/fr/free/nrw/commons/filepicker/ExtendedFileProvider.java
This file was deleted.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
app/src/main/java/fr/free/nrw/commons/filepicker/ExtendedFileProvider.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,5 @@ | ||
package fr.free.nrw.commons.filepicker | ||
|
||
import androidx.core.content.FileProvider | ||
|
||
class ExtendedFileProvider: FileProvider() {} |
Oops, something went wrong.