Skip to content

Commit

Permalink
update image picker
Browse files Browse the repository at this point in the history
  • Loading branch information
n8fr8 committed Dec 6, 2023
1 parent 4101194 commit 697a620
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions android-libproofcam/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,5 @@ dependencies {

//new C2PA content authenticity support
implementation("org.proofmode:proofmode-c2pa:0.5")
//implementation("info.guardianproject:simple_c2pa:0.0.2") { }
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.database.Cursor
import android.net.Uri
import android.provider.MediaStore
import org.proofmode.c2pa.C2paJNI

import java.io.File
import java.io.FileInputStream
import java.io.FileOutputStream
Expand Down Expand Up @@ -150,6 +151,7 @@ class C2paUtils {
fileImageOut.absolutePath
)


}

fun clearContentCredentials (_context:Context) {
Expand Down
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ dependencies {

implementation 'com.caverock:androidsvg-aar:1.3'

implementation 'io.github.ParkSangGwon:tedimagepicker:1.3.2'
implementation 'io.github.ParkSangGwon:tedimagepicker:1.4.2'

implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
implementation 'com.google.guava:listenablefuture:9999.0-empty-to-avoid-conflict-with-guava'
Expand All @@ -160,6 +160,7 @@ dependencies {

//new C2PA content authenticity support
implementation "org.proofmode:proofmode-c2pa:0.5"
//implementation 'info.guardianproject:simple_c2pa:0.0.2'

//for upload to proofcheck
implementation 'com.squareup.okio:okio:2.10.0'
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/witness/proofmode/MainActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
}

private fun showImagePicker() {
TedImagePicker.with(this).image().dropDownAlbum()
TedImagePicker.with(this).imageAndVideo().showVideoDuration(true).dropDownAlbum()
.startMultiImage {
showShareProof(
it
Expand Down
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ allprojects {
google()
maven { url "https://raw.githubusercontent.com/guardianproject/gpmaven/master" }
maven { url 'https://jitpack.io' }
maven {
url 'https://gitlab.com/api/v4/projects/52243488/packages/maven'
}
// maven {url 'https://zendesk.jfrog.io/zendesk/oss-releases-local'}
}
project.ext {
Expand Down

0 comments on commit 697a620

Please sign in to comment.