 }
 
 
+// MARK: - Main Bundle
+
 extension RGAppTools where Base: Bundle {
 
     /// Main Bundle 路径

        return Bundle.main.bundlePath
    }

    public static var mainBundleIdentifier: String? {
        return Bundle.main.rat.identifier
    }

    public static var mainBundleDisplayName: String? {
        return Bundle.main.rat.displayName
    }

    public static var mainBundleVersion: String? {
        return Bundle.main.rat.version
    }

    public static var mainBundleBuild: String? {
        return Bundle.main.rat.build
    }

    public static var mainBundleInfo: [String: Any]? {
        return Bundle.main.infoDictionary
    }

    /// 获取 Main Bundle 中的文件路径

}


// MARK: - Bundle

extension RGAppTools where Base: Bundle {

    /// Bundle Identifier
    public var identifier: String? {
        return base.infoDictionary?["CFBundleIdentifier"] as? String
    }

    /// Bundle Display Name
    public var displayName: String? {
        return base.infoDictionary?["CFBundleDisplayName"] as? String
    }

    /// Bundle Version Number
    public var version: String? {
        return base.infoDictionary?["CFBundleShortVersionString"] as? String
    }

    /// Bundle Build Number
    public var build: String? {
        return base.infoDictionary?["CFBundleVersion"] as? String
    }
