mitchtabian / Open-API-Android-App

Kotlin, MVI, Hilt, Retrofit2, Coroutines, Room Persistence, REST API, Token Authentication
690 stars 230 forks source link

Bugfix: Content Provider URI broken on newer Android versions #35

Closed matej-gutman closed 2 years ago

matej-gutman commented 2 years ago

Opening a file using I/O operations with Content Provider URI is broken on newer OS versions. Fixed.

Morons commented 2 years ago

This is not necessary. See the Clean Refactor (Final Version) I have upgraded: ext.kotlin_version = '1.5.31' compileSdkVersion 31 sourceCompatibility = JavaVersion.VERSION_11 targetCompatibility = JavaVersion.VERSION_11 kotlinOptions { jvmTarget = "11" } All Dependencies to latest and added android:exported="true" to manifest

All ran and build Perfectly!

It seems you were on earlier build of the app!

matej-gutman commented 2 years ago

I have replicated the issue with the latest master (clean git clone of repo). I think it's OS depended (Android 10 / 11). What device did you use for testing? For the test try to create or update blog post and see if it works. Update should be broken by not updating the picture, create does not work.

My AWD is below - can you please test on this version of OS as well and see if you can replicate the bug?


Name: Pixel_3a_API_30_x86 CPU/ABI: Google APIs Intel Atom (x86) Path: .............\Pixel_3a_API_30_x86.avd Target: google_apis [Google APIs] (API level 30) Skin: pixel_3a SD Card: 800M Snapshot: no hw.dPad: no hw.lcd.height: 2220 runtime.network.speed: full hw.accelerometer: yes hw.device.name: pixel_3a vm.heapSize: 256 hw.device.manufacturer: Google hw.lcd.width: 1080 hw.gps: yes image.androidVersion.api: 30 hw.audioInput: yes image.sysdir.1: system-images\android-30\google_apis\x86\ tag.id: google_apis hw.camera.back: emulated hw.mainKeys: no AvdId: Pixel_3a_API_30_x86 hw.camera.front: emulated hw.lcd.density: 440 avd.ini.displayname: Pixel_3a_API_30_x86 hw.arc: false hw.gpu.mode: auto snapshot.present: no hw.device.hash2: MD5:0e6953ebf01bdc6b33a2f54746629c50 hw.ramSize: 1536 hw.trackBall: no PlayStore.enabled: false hw.battery: yes hw.cpu.ncore: 12 hw.sdCard: yes tag.display: Google APIs runtime.network.latency: none hw.keyboard: yes hw.sensors.proximity: yes disk.dataPartition.size: 6442450944 hw.sensors.orientation: yes avd.ini.encoding: UTF-8 hw.gpu.enabled: yes

matej-gutman commented 2 years ago

Please see the discussion here, as it appears to be a known issue:

https://github.com/CanHub/Android-Image-Cropper/discussions/87?ref=https://githubhelp.com