Skip to content

Commit

Permalink
Merge pull request #28 from feiin/master
Browse files Browse the repository at this point in the history
fixed authorizePhoto
  • Loading branch information
feiin authored Nov 26, 2020
2 parents 290b38f + b7d6d6d commit 99c8d48
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PreviewsEnabled</key>
<false/>
</dict>
</plist>
4 changes: 4 additions & 0 deletions xdag-ios/xdag-ios/Common/AppPermissions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class AppPermissions: NSObject {
completion(status == PHAuthorizationStatus.authorized ? true:false)
}
})
case .limited:
completion(false)
break

}
}

Expand Down
1 change: 1 addition & 0 deletions xdag-ios/xdag-ios/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
<key>UIBackgroundModes</key>
<array>
<string>external-accessory</string>
<string>location</string>
</array>
<key>UIFileSharingEnabled</key>
<true/>
Expand Down

0 comments on commit 99c8d48

Please sign in to comment.