mirror of
https://github.com/ArcaneChat/android.git
synced 2026-07-03 14:05:24 +02:00
f18831b196
* set targetSdkVersion to 33 * api33 requires permission NEARBY_WIFI_DEVICES to access wifi not sure, if this affects getSystemService(Context.WIFI_SERVICE), however, we anyway do not ask for permissions here but just try/catch - if things do not work, we just cannot get the wifi name (we're not asking for permission as this would require LOCATION in the past - and that would scare users that just installed Delta Chat and select "Add Second Devive". this is the exact reason why NEARBY_WIFI_DEVICES was introduced, btw. so in case getting the Wifi name does not work on api33, we can consider asking for a permission - would still be on startup, however) * update storage permissions in manifest according to https://developer.android.com/training/data-storage/shared/media#storage-permission * also update compileSdkVersion * api33: adapt audio permission request * api33: adapt gallery permission request * request correct permissions for the 'photo rail' * request correct permissions for avatar selection * api33: storage and audio permission not needed * add comment wrt 'camera roll' * add POST_NOTIFICATIONS to the manifest, this already allows to enable notifications in the system settings * ask for POST_NOTIFICATIONS permission on startup * explain how to re-enable notifications if initially disabled * prefer a device message over an alert * show in settings if notifications are system-disabled