Skip to content

Commit

Permalink
Remove internal from the example project
Browse files Browse the repository at this point in the history
  • Loading branch information
mimicatcodes committed Jan 11, 2019
1 parent 336c150 commit a81da5b
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Yoshi

/// A menu with custom UI.
internal struct CustomUIMenu: YoshiGenericMenu {
struct CustomUIMenu: YoshiGenericMenu {

var cellSource: YoshiReusableCellDataSource {
return CustomMenuCellDataSource()
Expand All @@ -21,7 +21,7 @@ internal struct CustomUIMenu: YoshiGenericMenu {
}

/// UI data source for CustomUIMenu that uses a custom xib file.
internal final class CustomMenuCellDataSource: YoshiReusableCellDataSource {
final class CustomMenuCellDataSource: YoshiReusableCellDataSource {

static var nib: UINib? {
return UINib(nibName: "CustomCell", bundle: nil)
Expand All @@ -38,7 +38,7 @@ internal final class CustomMenuCellDataSource: YoshiReusableCellDataSource {
}

/// A custom UITableViewCell.
internal final class CustomCell: UITableViewCell {
final class CustomCell: UITableViewCell {

/// Label outlet from storyboard
@IBOutlet weak var label: UILabel!
Expand Down
2 changes: 1 addition & 1 deletion Example/YoshiExample/Custom Menus/DateSelectorMenu.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Yoshi

/// A date selector menu item to be displayed in Yoshi.
internal final class DateSelectorMenu: YoshiDateSelectorMenu {
final class DateSelectorMenu: YoshiDateSelectorMenu {

var title: String
var subtitle: String?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Yoshi

/// Default basic implementation of YoshiEnvironment protocol.
internal enum YoshiBaseEnvironment: String, YoshiEnvironment, Codable {
enum YoshiBaseEnvironment: String, YoshiEnvironment, Codable {

case qa, production

Expand Down
2 changes: 1 addition & 1 deletion Example/YoshiExample/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import UIKit

internal final class ViewController: UIViewController {
final class ViewController: UIViewController {

@IBOutlet private weak var environment: UILabel! {
didSet {
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Yoshi will take care of managing selections and call back the convenient closure
To present a date selector menu, create a type that conforms to `YoshiDateSelectorMenu` protocol

```swift
internal final class DateSelectorMenu: YoshiDateSelectorMenu {
final class DateSelectorMenu: YoshiDateSelectorMenu {

var title: String
var subtitle: String?
Expand Down Expand Up @@ -156,7 +156,7 @@ If you find your debug menu getting out of hand, you can organize it into submen


```swift
internal final class Submenu: YoshiSubmenu {
final class Submenu: YoshiSubmenu {

let title: String

Expand Down Expand Up @@ -269,7 +269,7 @@ private final class CustomMenuCellDataSource: YoshiResuableCellDataSource {
Then, provide the menu that conforms to `YoshiGenericMenu` referencing to the data source.

```swift
internal struct MenuWithCustomUI: YoshiGenericMenu {
struct MenuWithCustomUI: YoshiGenericMenu {

var cellSource: YoshiResuableCellDataSource {
return CustomMenuCellDataSource()
Expand Down
2 changes: 1 addition & 1 deletion Yoshi/QAKit/EnvironmentMenu/YoshiEnvironment.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

internal func == (left: YoshiEnvironment, right: YoshiEnvironment) -> Bool {
func == (left: YoshiEnvironment, right: YoshiEnvironment) -> Bool {
return left.baseURL == right.baseURL
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import Foundation

/// An class container used to help enum YoshiEnvironment encoding since enum encoding is not supported.
internal class YoshiPersistentEnvironment<T: YoshiEnvironment & Codable>: Codable {
class YoshiPersistentEnvironment<T: YoshiEnvironment & Codable>: Codable {

/// Persisted Environment.
private(set) var persistedEnvironment: T
Expand Down
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>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

/// Cell data source defining the layout for YoshiDateSelectorMenu's cell
internal struct YoshiDateSelectorMenuCellDataSource: YoshiReusableCellDataSource {
struct YoshiDateSelectorMenuCellDataSource: YoshiReusableCellDataSource {

private let title: String

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

/// Internal YoshiGenericMenu used for single selection menu.
internal final class YoshiSingleSelectionMenuItem: YoshiGenericMenu {
final class YoshiSingleSelectionMenuItem: YoshiGenericMenu {

var title: String {
return selection.title
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

/// Internal struct that map the YoshiTableViewMenuItem to a YoshiGenericMenu.
/// This menu is interannly used to support YoshiTableViewMenu.
internal struct YoshiTableViewSubmenuItem: YoshiGenericMenu {
struct YoshiTableViewSubmenuItem: YoshiGenericMenu {

let name: String
let subtitle: String?
Expand Down
2 changes: 1 addition & 1 deletion Yoshi/Yoshi/Utility/AppBundleUtility.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

/// Utility for retrieving items from the App Bundle
internal class AppBundleUtility: NSObject {
class AppBundleUtility: NSObject {

/**
The application version + build number text.
Expand Down
2 changes: 1 addition & 1 deletion Yoshi/Yoshi/Utility/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
/**
A color object
*/
internal struct Color {
struct Color {

/// The red value.
let red: UInt8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

/// The date picker view controller.
internal class DebugDatePickerViewController: UIViewController {
class DebugDatePickerViewController: UIViewController {

private var selectorMenu: YoshiDateSelectorMenu?

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
// Copyright © 2016 Prolific Interactive. All rights reserved.
//

internal typealias VoidCompletionBlock = () -> Void
typealias VoidCompletionBlock = () -> Void

/// A debug menu.
internal final class DebugViewController: UIViewController {
final class DebugViewController: UIViewController {

var completionHandler: ((_ completed: VoidCompletionBlock? ) -> Void)?

Expand Down
2 changes: 1 addition & 1 deletion Yoshi/Yoshi/YoshiConfigurationManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

/// The configuration manager for the debug menu.
internal final class YoshiConfigurationManager {
final class YoshiConfigurationManager {

/// The default instance.
static let sharedInstance = YoshiConfigurationManager()
Expand Down

0 comments on commit a81da5b

Please sign in to comment.