mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
Renames source JSON permissions key to “appPermissions” in order to preserve backwards compatibility, since we’ve changed the schema for permissions.
28 lines
657 B
Swift
28 lines
657 B
Swift
//
|
|
// PermissionPopoverViewController.swift
|
|
// AltStore
|
|
//
|
|
// Created by Riley Testut on 7/23/19.
|
|
// Copyright © 2019 Riley Testut. All rights reserved.
|
|
//
|
|
|
|
import UIKit
|
|
|
|
import AltStoreCore
|
|
|
|
final class PermissionPopoverViewController: UIViewController
|
|
{
|
|
var permission: AppPermission!
|
|
|
|
@IBOutlet private var nameLabel: UILabel!
|
|
@IBOutlet private var descriptionLabel: UILabel!
|
|
|
|
override func viewDidLoad()
|
|
{
|
|
super.viewDidLoad()
|
|
|
|
self.nameLabel.text = self.permission.localizedName ?? self.permission.permission.rawValue
|
|
self.descriptionLabel.text = self.permission.usageDescription
|
|
}
|
|
}
|