Skip to content

Commit

Permalink
[FEAT] Added Biometric Authentication for Android 9 and above.
Browse files Browse the repository at this point in the history
 - Introduced methods in `SystemFacade`: `authenticate`, `enroll`, `unlock`.
 - Displayed biometric authentication prompt to users.
 - TODO: Add support for Android versions below 9 when a suitable library for `ComponentActivity` is available.

[FEAT] Platform Toast in `SystemFacade`.
 - Enabled `PlatformToast` display via `SystemFacade.showPlatformToast`.

[REFACTOR] Simplified `CompositionLocals` between `Gallery` and `MainActivity`.

[FEAT] Added `LockScreen`.
 - Implemented a mock app lock-screen.

[FEAT] Added `EndConcaveShape`.
[FEAT] Clipped `NavRailShape` with `EndConcaveShape`.
 - Increased NavRail minWidth from` 96.dp` to `106.dp` to accommodate clipping with `EndConcaveShape`.

[REFACTOR] Renamed `Home` to `Gallery`.

[FIX] Set default value to empty string in `MediaProviderImpl` for cursor getString returning null.

[DOC] Moved KDOC of `Settings` to the top.

[FEAT] Added `Context.checkSelfPermission` method in `Utils`.
  • Loading branch information
iZakirSheikh committed Sep 13, 2024
1 parent dd0a29e commit 4dee74d
Show file tree
Hide file tree
Showing 17 changed files with 722 additions and 365 deletions.
4 changes: 2 additions & 2 deletions .idea/deploymentTargetSelector.xml

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

4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ android {
applicationId = "com.googol.android.apps.photos"
minSdk = 24
targetSdk = 35
versionCode = 13
versionName = "0.1.0-dev13"
versionCode = 14
versionName = "0.1.0-dev14"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down
5 changes: 5 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">

<!--Required to provide app-lock feature.-->
<uses-permission android:name="android.permission.USE_BIOMETRIC" />
<!-- Devices running Android 12L (API level 32) or lower -->
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
Expand All @@ -11,6 +13,9 @@
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO" />

<!-- Required to access GPS Data of Media -->
<uses-permission android:name="android.permission.ACCESS_MEDIA_LOCATION" />

<!-- To handle the reselection within the app on devices running Android 14
or higher if your app targets Android 14 (API level 34) or higher. -->
<uses-permission android:name="android.permission.READ_MEDIA_VISUAL_USER_SELECTED" />
Expand Down
Loading

0 comments on commit 4dee74d

Please sign in to comment.