Implemented Android API to check permissions
parents
Showing
.gitignore
0 → 100644
CHANGELOG.md
0 → 100644
CODE_OF_CONDUCT.md
0 → 100644
CONTRIBUTING.md
0 → 100644
LICENSE
0 → 100644
README.md
0 → 100644
analysis_options.yaml
0 → 100644
android/.classpath
0 → 100644
android/.gitignore
0 → 100644
android/.project
0 → 100644
android/build.gradle
0 → 100644
android/gradle.properties
0 → 100644
android/settings.gradle
0 → 100644
android/src/main/AndroidManifest.xml
0 → 100644
This diff is collapsed.
Click to expand it.
example/.gitignore
0 → 100644
example/.idea/libraries/Dart_SDK.xml
0 → 100644
example/.idea/modules.xml
0 → 100644
example/.idea/workspace.xml
0 → 100644
example/.metadata
0 → 100644
example/README.md
0 → 100644
example/android/.gitignore
0 → 100644
File added
example/android/.idea/codeStyles/Project.xml
0 → 100644
example/android/.idea/gradle.xml
0 → 100644
example/android/.idea/misc.xml
0 → 100644
example/android/.idea/modules.xml
0 → 100644
example/android/.idea/runConfigurations.xml
0 → 100644
example/android/.project
0 → 100644
example/android/app/.classpath
0 → 100644
example/android/app/.project
0 → 100644
example/android/app/build.gradle
0 → 100644
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
example/android/build.gradle
0 → 100644
example/android/gradle.properties
0 → 100644
File added
example/android/gradlew
0 → 100755
example/android/gradlew.bat
0 → 100644
example/android/settings.gradle
0 → 100644
example/ios/.gitignore
0 → 100644
example/ios/Flutter/AppFrameworkInfo.plist
0 → 100644
example/ios/Flutter/Debug.xcconfig
0 → 100644
example/ios/Flutter/Release.xcconfig
0 → 100644
example/ios/Podfile
0 → 100644
| # Uncomment this line to define a global platform for your project | ||
| # platform :ios, '9.0' | ||
| # CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
| ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
| def parse_KV_file(file, separator='=') | ||
| file_abs_path = File.expand_path(file) | ||
| if !File.exists? file_abs_path | ||
| return []; | ||
| end | ||
| pods_ary = [] | ||
| skip_line_start_symbols = ["#", "/"] | ||
| File.foreach(file_abs_path) { |line| | ||
| next if skip_line_start_symbols.any? { |symbol| line =~ /^\s*#{symbol}/ } | ||
| plugin = line.split(pattern=separator) | ||
| if plugin.length == 2 | ||
| podname = plugin[0].strip() | ||
| path = plugin[1].strip() | ||
| podpath = File.expand_path("#{path}", file_abs_path) | ||
| pods_ary.push({:name => podname, :path => podpath}); | ||
| else | ||
| puts "Invalid plugin specification: #{line}" | ||
| end | ||
| } | ||
| return pods_ary | ||
| end | ||
| target 'Runner' do | ||
| use_frameworks! | ||
| # Prepare symlinks folder. We use symlinks to avoid having Podfile.lock | ||
| # referring to absolute paths on developers' machines. | ||
| system('rm -rf .symlinks') | ||
| system('mkdir -p .symlinks/plugins') | ||
| # Flutter Pods | ||
| generated_xcode_build_settings = parse_KV_file('./Flutter/Generated.xcconfig') | ||
| if generated_xcode_build_settings.empty? | ||
| puts "Generated.xcconfig must exist. If you're running pod install manually, make sure flutter packages get is executed first." | ||
| end | ||
| generated_xcode_build_settings.map { |p| | ||
| if p[:name] == 'FLUTTER_FRAMEWORK_DIR' | ||
| symlink = File.join('.symlinks', 'flutter') | ||
| File.symlink(File.dirname(p[:path]), symlink) | ||
| pod 'Flutter', :path => File.join(symlink, File.basename(p[:path])) | ||
| end | ||
| } | ||
| # Plugin Pods | ||
| plugin_pods = parse_KV_file('../.flutter-plugins') | ||
| plugin_pods.map { |p| | ||
| symlink = File.join('.symlinks', 'plugins', p[:name]) | ||
| File.symlink(p[:path], symlink) | ||
| pod p[:name], :path => File.join(symlink, 'ios') | ||
| } | ||
| end | ||
| post_install do |installer| | ||
| installer.pods_project.targets.each do |target| | ||
| target.build_configurations.each do |config| | ||
| config.build_settings['ENABLE_BITCODE'] = 'NO' | ||
| end | ||
| end | ||
| end |
example/ios/Runner.xcodeproj/project.pbxproj
0 → 100644
This diff is collapsed.
Click to expand it.
example/ios/Runner/AppDelegate.swift
0 → 100644
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
This diff was suppressed by a .gitattributes entry.
example/ios/Runner/Info.plist
0 → 100644
example/ios/Runner/Runner-Bridging-Header.h
0 → 100644
example/lib/main.dart
0 → 100644
example/permission_handler_example.iml
0 → 100644
example/pubspec.yaml
0 → 100644
example/test/widget_test.dart
0 → 100644
ios/.gitignore
0 → 100644
ios/Assets/.gitkeep
0 → 100644
ios/Classes/PermissionHandlerPlugin.h
0 → 100644
ios/Classes/PermissionHandlerPlugin.m
0 → 100644
This diff is collapsed.
Click to expand it.
ios/permission_handler.podspec
0 → 100644
This diff is collapsed.
Click to expand it.
lib/permission_enums.dart
0 → 100644
This diff is collapsed.
Click to expand it.
lib/permission_handler.dart
0 → 100644
This diff is collapsed.
Click to expand it.
lib/utils/codec.dart
0 → 100644
This diff is collapsed.
Click to expand it.
permission_handler.iml
0 → 100644
This diff is collapsed.
Click to expand it.
permission_handler_android.iml
0 → 100644
This diff is collapsed.
Click to expand it.
pubspec.yaml
0 → 100644
This diff is collapsed.
Click to expand it.
Please
register
or
sign in
to comment