Skip to content

Commit

Permalink
Update doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
natsuk4ze committed Aug 30, 2023
1 parent 88f04a3 commit 73f2573
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ $ flutter pub add gal
Add the following key to your _Info.plist_ file, located in
`<project root>/ios/Runner/Info.plist`:

* `<key>NSPhotoLibraryAddUsageDescription</key>`
* `<key>NSPhotoLibraryUsageDescription</key>` Requried If you want to save media to album.
* `<key>NSPhotoLibraryAddUsageDescription</key>` Required
* `<key>NSPhotoLibraryUsageDescription</key>` Required for saving to album

you can copy from [Info.plist in example](https://github.com/natsuk4ze/gal/blob/main/example/ios/Runner/Info.plist).

Expand All @@ -52,8 +52,8 @@ Add the following key to your _AndroidManifest_ file, located in
`<project root>/android/app/src/main/AndroidManifest.xml`:

* `<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />`
* `android:requestLegacyExternalStorage="true"` Requried If you want to save media to album in Android 10.
android:maxSdkVersion="29" />` Required for supporting API <= 29
* `android:requestLegacyExternalStorage="true"` Required for saving to album in API 29

you can copy from [AndroidManifest.xml in example](https://github.com/natsuk4ze/gal/blob/main/example/android/app/src/main/AndroidManifest.xml).

Expand Down
6 changes: 3 additions & 3 deletions example/android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
android:label="gal_example"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher"
android:requestLegacyExternalStorage="true"> <!-- Gal: If supports Saving to album in API 29 :Gal-->
android:requestLegacyExternalStorage="true"> <!-- Gal: For saving to album in API 29 :Gal-->
<activity
android:name=".MainActivity"
android:exported="true"
Expand All @@ -29,9 +29,9 @@
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />

<!-- Gal: If supports API <29 add this key :Gal-->
<!-- Gal: For supporting API <= 29 :Gal-->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:maxSdkVersion="29" />
<!-- Gal: If supports API <29 add this key :Gal-->
<!-- Gal: For supporting API <= 29 :Gal-->

</manifest>
8 changes: 4 additions & 4 deletions example/ios/Runner/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<!-- gal: For just saving media -->
<!-- gal: Required -->
<key>NSPhotoLibraryAddUsageDescription</key>
<string>We need add only access to save medias</string>
<!-- gal: For just saving media -->
<!-- gal: Required -->

<!-- gal: For saving media to album-->
<!-- gal: Required for saving to album -->
<key>NSPhotoLibraryUsageDescription</key>
<string>We need access to save medias</string>
<!-- gal: For saving media to album-->
<!-- gal: Required for saving to album -->

<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
Expand Down

0 comments on commit 73f2573

Please sign in to comment.