GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Added native PermissionFreeMode flag on Android to skip permission di… · yasirkula/UnityNativeFilePicker@de516b9

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github/AAR Source (Android)/java/com/yasirkula/unity
    • NativeFilePicker.java
  • Plugins/NativeFilePicker
    • Android
      • NativeFilePicker.aar
    • README.txt
  • package.json
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/AAR Source (Android)/java/com/yasirkula/unity/NativeFilePicker.java‎

Copy file name to clipboardExpand all lines: .github/AAR Source (Android)/java/com/yasirkula/unity/NativeFilePicker.java
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,13 @@
1313
import android.provider.Settings;
1414
import android.webkit.MimeTypeMap;
1515

16-
import java.io.BufferedReader;
17-
import java.io.InputStreamReader;
1816
import java.util.ArrayList;
1917
import java.util.Locale;
2018

2119
public class NativeFilePicker
2220
{
2321
public static boolean UseDefaultFilePickerApp = false; // false: Intent.createChooser is used to select the file picker app
22+
public static boolean PermissionFreeMode = false; // true: No permission will be asked (use at your own risk)
2423

2524
public static void PickFiles( Context context, final NativeFilePickerResultReceiver resultReceiver, final boolean selectMultiple, final String savePath, final String[] mimes, final String title )
2625
{
@@ -74,6 +73,9 @@ public static void ExportFiles( Context context, final NativeFilePickerResultRec
7473
@TargetApi( Build.VERSION_CODES.M )
7574
public static int CheckPermission( Context context, final boolean readPermissionOnly )
7675
{
76+
if( PermissionFreeMode )
77+
return 1;
78+
7779
if( Build.VERSION.SDK_INT < Build.VERSION_CODES.M )
7880
return 1;
7981

Collapse file

‎Plugins/NativeFilePicker/Android/NativeFilePicker.aar‎

Copy file name to clipboard
290 Bytes
Binary file not shown.
Collapse file

‎Plugins/NativeFilePicker/README.txt‎

Copy file name to clipboardExpand all lines: Plugins/NativeFilePicker/README.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
= Native File Picker for Android & iOS (v1.3.4) =
1+
= Native File Picker for Android & iOS (v1.3.5) =
22

33
Documentation: https://github.com/yasirkula/UnityNativeFilePicker
44
FAQ: https://github.com/yasirkula/UnityNativeFilePicker#faq
Collapse file

‎package.json‎

Copy file name to clipboardExpand all lines: package.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.yasirkula.nativefilepicker",
33
"displayName": "Native File Picker",
4-
"version": "1.3.4",
4+
"version": "1.3.5",
55
"documentationUrl": "https://github.com/yasirkula/UnityNativeFilePicker",
66
"changelogUrl": "https://github.com/yasirkula/UnityNativeFilePicker/releases",
77
"licensesUrl": "https://github.com/yasirkula/UnityNativeFilePicker/blob/master/LICENSE.txt",

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.