├── .gitignore ├── Demo ├── DWShortVideoRecoder │ ├── DWShortVideoRecoder.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ └── DWShortVideoRecoder │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── DWShortVideoRecoder │ │ ├── DWPreviewView.h │ │ ├── DWPreviewView.m │ │ ├── DWVideoConstant.h │ │ ├── DWVideoConstant.m │ │ ├── DWVideoRecoder.h │ │ ├── DWVideoRecoder.m │ │ ├── DWVideoWriter.h │ │ └── DWVideoWriter.m │ │ ├── Info.plist │ │ ├── ViewController.h │ │ ├── ViewController.m │ │ └── main.m ├── OnlyCrashOnJailbreakDemo │ ├── Example │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Pods │ │ │ ├── Local Podspecs │ │ │ │ └── ResourcesOCPod.podspec.json │ │ │ ├── Manifest.lock │ │ │ ├── Pods.xcodeproj │ │ │ │ └── project.pbxproj │ │ │ └── Target Support Files │ │ │ │ ├── Pods-ResourcesOCPod_Example │ │ │ │ ├── Info.plist │ │ │ │ ├── Pods-ResourcesOCPod_Example-acknowledgements.markdown │ │ │ │ ├── Pods-ResourcesOCPod_Example-acknowledgements.plist │ │ │ │ ├── Pods-ResourcesOCPod_Example-dummy.m │ │ │ │ ├── Pods-ResourcesOCPod_Example-frameworks.sh │ │ │ │ ├── Pods-ResourcesOCPod_Example-resources.sh │ │ │ │ ├── Pods-ResourcesOCPod_Example-umbrella.h │ │ │ │ ├── Pods-ResourcesOCPod_Example.debug.xcconfig │ │ │ │ ├── Pods-ResourcesOCPod_Example.modulemap │ │ │ │ └── Pods-ResourcesOCPod_Example.release.xcconfig │ │ │ │ ├── Pods-ResourcesOCPod_Tests │ │ │ │ ├── Info.plist │ │ │ │ ├── Pods-ResourcesOCPod_Tests-acknowledgements.markdown │ │ │ │ ├── Pods-ResourcesOCPod_Tests-acknowledgements.plist │ │ │ │ ├── Pods-ResourcesOCPod_Tests-dummy.m │ │ │ │ ├── Pods-ResourcesOCPod_Tests-frameworks.sh │ │ │ │ ├── Pods-ResourcesOCPod_Tests-resources.sh │ │ │ │ ├── Pods-ResourcesOCPod_Tests-umbrella.h │ │ │ │ ├── Pods-ResourcesOCPod_Tests.debug.xcconfig │ │ │ │ ├── Pods-ResourcesOCPod_Tests.modulemap │ │ │ │ └── Pods-ResourcesOCPod_Tests.release.xcconfig │ │ │ │ └── ResourcesOCPod │ │ │ │ ├── Info.plist │ │ │ │ ├── ResourceBundle-ResourcesOCPod-Info.plist │ │ │ │ ├── ResourcesOCPod-dummy.m │ │ │ │ ├── ResourcesOCPod-prefix.pch │ │ │ │ ├── ResourcesOCPod-umbrella.h │ │ │ │ ├── ResourcesOCPod.modulemap │ │ │ │ └── ResourcesOCPod.xcconfig │ │ ├── ResourcesOCPod.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ └── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── ResourcesOCPod-Example.xcscheme │ │ ├── ResourcesOCPod.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ └── IDEWorkspaceChecks.plist │ │ ├── ResourcesOCPod │ │ │ ├── Base.lproj │ │ │ │ ├── LaunchScreen.storyboard │ │ │ │ └── Main.storyboard │ │ │ ├── DWAppDelegate.h │ │ │ ├── DWAppDelegate.m │ │ │ ├── DWViewController.h │ │ │ ├── DWViewController.m │ │ │ ├── Images.xcassets │ │ │ │ ├── AppIcon.appiconset │ │ │ │ │ └── Contents.json │ │ │ │ ├── Contents.json │ │ │ │ └── image1.imageset │ │ │ │ │ ├── Contents.json │ │ │ │ │ ├── image1@2x.png │ │ │ │ │ └── image1@3x.png │ │ │ ├── ResourcesOCPod-Info.plist │ │ │ ├── ResourcesOCPod-Prefix.pch │ │ │ ├── en.lproj │ │ │ │ └── InfoPlist.strings │ │ │ └── main.m │ │ └── Tests │ │ │ ├── Tests-Info.plist │ │ │ ├── Tests-Prefix.pch │ │ │ ├── Tests.m │ │ │ └── en.lproj │ │ │ └── InfoPlist.strings │ ├── LICENSE │ ├── README.md │ ├── ResourcesOCPod.podspec │ ├── ResourcesOCPod │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── .gitkeep │ │ │ ├── DWImage.h │ │ │ └── DWImage.m │ │ └── image.xcassets │ │ │ ├── Contents.json │ │ │ ├── image1.imageset │ │ │ ├── Contents.json │ │ │ ├── image1@2x.png │ │ │ └── image1@3x.png │ │ │ └── image2.imageset │ │ │ ├── Contents.json │ │ │ ├── image1@2x.png │ │ │ └── image1@3x.png │ ├── imageInAssetCatalog@2x.png │ └── imageInAssetCatalog@3x.png ├── ResourceManageDemo │ ├── Podfile │ ├── Podfile.lock │ ├── Pods │ │ ├── Manifest.lock │ │ ├── Pods.xcodeproj │ │ │ └── project.pbxproj │ │ ├── SwiftGen │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── bin │ │ │ │ └── swiftgen │ │ │ ├── lib │ │ │ │ ├── Commander.framework │ │ │ │ │ ├── Commander │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Commander │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Commander │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── Kanna.framework │ │ │ │ │ ├── Kanna │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Kanna │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Kanna │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── PathKit.framework │ │ │ │ │ ├── PathKit │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── PathKit │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── PathKit │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── Stencil.framework │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── Stencil │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── Stencil │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── Stencil │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── StencilSwiftKit.framework │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── StencilSwiftKit │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── StencilSwiftKit │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── StencilSwiftKit │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── SwiftGenKit.framework │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── SwiftGenKit │ │ │ │ │ └── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── SwiftGenKit │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ ├── SwiftGenKit │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ └── CodeResources │ │ │ │ ├── Yams.framework │ │ │ │ │ ├── Resources │ │ │ │ │ │ └── Info.plist │ │ │ │ │ ├── Versions │ │ │ │ │ │ ├── A │ │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ │ ├── Yams │ │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ │ └── Current │ │ │ │ │ │ │ ├── Resources │ │ │ │ │ │ │ └── Info.plist │ │ │ │ │ │ │ ├── Yams │ │ │ │ │ │ │ └── _CodeSignature │ │ │ │ │ │ │ └── CodeResources │ │ │ │ │ └── Yams │ │ │ │ ├── libswiftAppKit.dylib │ │ │ │ ├── libswiftCore.dylib │ │ │ │ ├── libswiftCoreData.dylib │ │ │ │ ├── libswiftCoreFoundation.dylib │ │ │ │ ├── libswiftCoreGraphics.dylib │ │ │ │ ├── libswiftCoreImage.dylib │ │ │ │ ├── libswiftDarwin.dylib │ │ │ │ ├── libswiftDispatch.dylib │ │ │ │ ├── libswiftFoundation.dylib │ │ │ │ ├── libswiftIOKit.dylib │ │ │ │ ├── libswiftMetal.dylib │ │ │ │ ├── libswiftObjectiveC.dylib │ │ │ │ ├── libswiftQuartzCore.dylib │ │ │ │ ├── libswiftXPC.dylib │ │ │ │ └── libswiftos.dylib │ │ │ └── templates │ │ │ │ ├── colors │ │ │ │ ├── literals-swift3.stencil │ │ │ │ ├── literals-swift4.stencil │ │ │ │ ├── swift2.stencil │ │ │ │ ├── swift3.stencil │ │ │ │ └── swift4.stencil │ │ │ │ ├── fonts │ │ │ │ ├── swift2.stencil │ │ │ │ ├── swift3.stencil │ │ │ │ └── swift4.stencil │ │ │ │ ├── storyboards │ │ │ │ ├── swift2.stencil │ │ │ │ ├── swift3.stencil │ │ │ │ └── swift4.stencil │ │ │ │ ├── strings │ │ │ │ ├── flat-swift2.stencil │ │ │ │ ├── flat-swift3.stencil │ │ │ │ ├── flat-swift4.stencil │ │ │ │ ├── structured-swift2.stencil │ │ │ │ ├── structured-swift3.stencil │ │ │ │ └── structured-swift4.stencil │ │ │ │ └── xcassets │ │ │ │ ├── swift2.stencil │ │ │ │ ├── swift3.stencil │ │ │ │ └── swift4.stencil │ │ └── Target Support Files │ │ │ └── Pods-ResourceManageDemo │ │ │ ├── Info.plist │ │ │ ├── Pods-ResourceManageDemo-acknowledgements.markdown │ │ │ ├── Pods-ResourceManageDemo-acknowledgements.plist │ │ │ ├── Pods-ResourceManageDemo-dummy.m │ │ │ ├── Pods-ResourceManageDemo-frameworks.sh │ │ │ ├── Pods-ResourceManageDemo-resources.sh │ │ │ ├── Pods-ResourceManageDemo-umbrella.h │ │ │ ├── Pods-ResourceManageDemo.debug.xcconfig │ │ │ ├── Pods-ResourceManageDemo.modulemap │ │ │ └── Pods-ResourceManageDemo.release.xcconfig │ ├── README.md │ ├── ResourceManageDemo.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── ResourceManageDemo.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── IDEWorkspaceChecks.plist │ ├── ResourceManageDemo │ │ ├── AppDelegate.swift │ │ ├── Assets.swift │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ │ ├── Contents.json │ │ │ └── Damonwong.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── Damonwong@2x.png │ │ │ │ └── Damonwong@3x.png │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ ├── Info.plist │ │ └── ViewController.swift │ ├── script │ │ ├── AutoAsset │ │ └── SwiftGenTemplate.stencil │ ├── synchronizeImageFolder │ │ ├── Damonwong@2x.png │ │ └── Damonwong@3x.png │ └── synchronizeImageFolder_backup │ │ ├── Damonwong@2x.png │ │ └── Damonwong@3x.png └── VideoRecoderDemo │ ├── VideoRecoderDemo.xcodeproj │ ├── project.pbxproj │ └── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── VideoRecoderDemo │ ├── AppDelegate.h │ ├── AppDelegate.m │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── ViewController.h │ ├── ViewController.m │ └── main.m ├── LICENSE ├── Notes ├── SwiftTips_1.md ├── diff_1.md ├── framework.md ├── framework2.md ├── optimize_app_size_1.md ├── optimizing_app_launch.md ├── resource_manage.md ├── swift_performance.md ├── swift_style_guide.md └── videorecoder.md ├── README.md └── images ├── .DS_Store ├── AppBetter_1.png ├── AppBetter_10.png ├── AppBetter_2.png ├── AppBetter_3.png ├── AppBetter_4.png ├── AppBetter_5.png ├── AppBetter_6.png ├── AppBetter_7.png ├── AppBetter_8.jpeg ├── AppBetter_9.png ├── framework-dylib.png ├── framework-embeded.png ├── framework-mach-o.png ├── framework-problem.jpg ├── framework-static.png ├── framework2-dtb.jpg ├── framework2-jtb.jpg ├── framework2-memory.png ├── performance_1.png ├── performance_10.png ├── performance_11.png ├── performance_12.png ├── performance_2.png ├── performance_3.png ├── performance_4.png ├── performance_5.png ├── performance_6.png ├── performance_7.png ├── performance_8.png ├── performance_9.png ├── resource_manage1.jpg ├── resource_manage2.jpg ├── resource_manage3.jpg ├── resource_manage4.jpg ├── resource_manage5.jpg ├── resource_manage6.png ├── resource_manage7.jpg ├── videorecoder_1.png ├── videorecoder_2.png ├── videorecoder_3.jpg └── videorecoder_4.jpg /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xcuserstate 23 | 24 | ## Obj-C/Swift specific 25 | *.hmap 26 | *.ipa 27 | *.dSYM.zip 28 | *.dSYM 29 | 30 | # CocoaPods 31 | # 32 | # We recommend against adding the Pods directory to your .gitignore. However 33 | # you should judge for yourself, the pros and cons are mentioned at: 34 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 35 | # 36 | # Pods/ 37 | 38 | # Carthage 39 | # 40 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 41 | # Carthage/Checkouts 42 | 43 | Carthage/Build 44 | 45 | # fastlane 46 | # 47 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 48 | # screenshots whenever they are needed. 49 | # For more information about the recommended setup visit: 50 | # https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Gitignore.md 51 | 52 | fastlane/report.xml 53 | fastlane/screenshots 54 | 55 | #Code Injection 56 | # 57 | # After new code Injection tools there's a generated folder /iOSInjectionProject 58 | # https://github.com/johnno1962/injectionforxcode 59 | 60 | iOSInjectionProject/ 61 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // DWShortVideoRecoder 4 | // 5 | // Created by Damon on 16/8/30. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // DWShortVideoRecoder 4 | // 5 | // Created by Damon on 16/8/30. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/DWShortVideoRecoder/DWPreviewView.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWPreviewView.h 3 | // VideoDemo 4 | // 5 | // Created by Damon on 16/8/27. 6 | // Copyright © 2016年 damon. All rights reserved. 7 | // 8 | 9 | #import "DWVideoConstant.h" 10 | 11 | @class DWPreviewView; 12 | @protocol DWPreviewViewDelegate 13 | 14 | - (void)previewView:(DWPreviewView *)previewView singleClickAtPoint:(CGPoint)point; 15 | - (void)previewView:(DWPreviewView *)previewView doubleClickAtPoint:(CGPoint)point; 16 | 17 | @end 18 | 19 | @interface DWPreviewView : UIView 20 | 21 | 22 | @property (nonatomic, strong) AVCaptureSession *session; 23 | @property (nonatomic, weak) id delegate; 24 | 25 | 26 | @end 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/DWShortVideoRecoder/DWVideoConstant.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWVideoConstant.h 3 | // VideoDemo 4 | // 5 | // Created by Damon on 16/8/28. 6 | // Copyright © 2016年 damon. All rights reserved. 7 | // 8 | 9 | #import 10 | #import 11 | 12 | extern NSString * const DWVideoRecoderErrorDomain; 13 | 14 | typedef NS_ENUM(NSInteger, DWVideoRecoderErrorCode) { 15 | 16 | DWVideoRecoderErrorFailedToSetSessionPreset = 901, 17 | 18 | DWVideoRecoderErrorFailedToAddVideoInput = 1000, 19 | DWVideoRecoderErrorFailedToAddAudioInput = 1001, 20 | 21 | DWVideoRecoderErrorFailedToAddVideoOutput = 2000, 22 | DWVideoRecoderErrorFailedToAddAudioOutput = 2000, 23 | 24 | DWVideoRecoderErrorFailedToSwitchCameras = 3000, 25 | DWVideoRecoderErrorFailedToFocusAndExposure = 3001, 26 | 27 | DWVideoRecoderErrorFailedToCreatWriter = 4000, 28 | DWVideoRecoderErrorFailedToStartwriting = 4001, 29 | DWVideoRecoderErrorFailedToCreatePixelBuffer = 4002, 30 | DWVideoRecoderErrorFailedToAppendVideoBuffer = 4003, 31 | DWVideoRecoderErrorFailedToAppendAudioBuffer = 4004, 32 | 33 | DWVideoRecoderErrorFailedToAddVideoInputWriter = 5000, 34 | DWVideoRecoderErrorFailedToAddAudioInputWriter = 5001, 35 | 36 | 37 | }; 38 | 39 | NS_INLINE NSError* DWVideoRecoderError(NSString *description,DWVideoRecoderErrorCode code) 40 | { 41 | NSDictionary *userInfo = @{NSLocalizedDescriptionKey : description}; 42 | NSError *error = [NSError errorWithDomain:DWVideoRecoderErrorDomain code:code userInfo:userInfo]; 43 | return error; 44 | } 45 | 46 | NS_INLINE void DWShowFocusView(UIView *view, CGPoint point) { 47 | view.center = point; 48 | view.hidden = NO; 49 | [UIView animateWithDuration:0.25f 50 | delay:0.0f 51 | options:UIViewAnimationOptionCurveEaseInOut 52 | animations:^{ 53 | view.layer.transform = CATransform3DMakeScale(0.5, 0.5, 1.0); 54 | } 55 | completion:^(BOOL complete) { 56 | double delayInSeconds = 0.5f; 57 | dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC)); 58 | dispatch_after(popTime, dispatch_get_main_queue(), ^(void){ 59 | view.hidden = YES; 60 | view.transform = CGAffineTransformIdentity; 61 | }); 62 | }]; 63 | } 64 | 65 | NS_INLINE CGPoint DWCoverUIViewPointToCapturePoint(CALayer *layer,CGPoint point){ 66 | 67 | return [(AVCaptureVideoPreviewLayer *)layer captureDevicePointOfInterestForPoint:point]; 68 | 69 | } 70 | 71 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/DWShortVideoRecoder/DWVideoConstant.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWVideoConstant.m 3 | // VideoDemo 4 | // 5 | // Created by Damon on 16/8/28. 6 | // Copyright © 2016年 damon. All rights reserved. 7 | // 8 | 9 | #import "DWVideoConstant.h" 10 | 11 | NSString *const DWVideoRecoderErrorDomain = @"com.damonvvong.DWVideoRecoderErrorDomain"; -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/DWShortVideoRecoder/DWVideoRecoder.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWVideoRecoder.h 3 | // VideoDemo 4 | // 5 | // Created by Damon on 16/8/27. 6 | // Copyright © 2016年 damon. All rights reserved. 7 | // 8 | 9 | 10 | #import "DWVideoConstant.h" 11 | 12 | @class DWVideoRecoder; 13 | 14 | @protocol DWVideoRecoderDelegate 15 | 16 | - (void)videoRecoderSwitchCamerasFailed:(DWVideoRecoder *)videoRecoder Error:(NSError *)error; 17 | - (void)videoRecoderFocusAndExposureFailed:(DWVideoRecoder *)videoRecoder Error:(NSError *)error; 18 | 19 | 20 | @end 21 | 22 | @interface DWVideoRecoder : NSObject 23 | 24 | @property (nonatomic, weak) id delegate; 25 | @property (nonatomic, strong, readonly) AVCaptureSession *captureSession; 26 | @property (nonatomic, strong, readonly) dispatch_queue_t captureQueue; 27 | 28 | @property (nonatomic, getter = isRecording) BOOL recording; 29 | 30 | // Session Configuration 31 | - (BOOL)setupSession:(NSError **)error; 32 | - (BOOL)setupSessionInputs:(NSError **)error; 33 | - (BOOL)setupSessionOutputs:(NSError **)error; 34 | 35 | - (void)startSession; 36 | - (void)stopSession; 37 | 38 | - (NSString *)sessionPreset; 39 | 40 | // Camera Device Configuration 41 | - (BOOL)switchCamerasWithError:(NSError **)error; 42 | - (BOOL)canSwitchCameras; 43 | - (void)autoFocusAndExposureAtPoint:(CGPoint)point error:(NSError **)error; 44 | 45 | // video recode 46 | - (void)startRecordingWithError:(NSError **)error; 47 | - (void)stopRecordingWithError:(NSError **)error; 48 | 49 | @end 50 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/DWShortVideoRecoder/DWVideoWriter.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWVideoWriter.h 3 | // VideoDemo 4 | // 5 | // Created by Damon on 16/8/27. 6 | // Copyright © 2016年 damon. All rights reserved. 7 | // 8 | 9 | #import "DWVideoConstant.h" 10 | 11 | @class DWVideoWriter; 12 | 13 | @protocol DWVideoWriterDelegate 14 | 15 | - (void)videoWriter:(DWVideoWriter *)videoWriter didOutputVideoAtPath:(NSURL *)url; 16 | 17 | @end 18 | 19 | @interface DWVideoWriter : NSObject 20 | 21 | @property (weak, nonatomic) id delegate; 22 | @property (nonatomic, assign) BOOL isWriting; 23 | 24 | 25 | - (id)initWithVideoSettings:(NSDictionary *)videoSettings audioSettings:(NSDictionary *)audioSettings dispatchQueue:(dispatch_queue_t)dispatchQueue; 26 | 27 | - (void)startWritingWith:(NSError **)error; 28 | - (void)stopWritingWithError:(NSError **)error; 29 | 30 | - (void)processSampleBuffer:(CMSampleBufferRef)sampleBuffer error:(NSError **)error; 31 | 32 | @end 33 | 34 | 35 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // DWShortVideoRecoder 4 | // 5 | // Created by Damon on 16/8/30. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/ViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.m 3 | // DWShortVideoRecoder 4 | // 5 | // Created by Damon on 16/8/30. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | #import "ViewController.h" 9 | #import "DWPreviewView.h" 10 | #import "DWVideoRecoder.h" 11 | 12 | @interface ViewController () 13 | 14 | @property (nonatomic, strong) DWVideoRecoder *videoRecoder; 15 | @property (nonatomic, strong) DWPreviewView *previewView; 16 | 17 | @end 18 | 19 | @implementation ViewController 20 | 21 | - (void)viewDidLoad { 22 | [super viewDidLoad]; 23 | 24 | self.videoRecoder = [[DWVideoRecoder alloc] init]; 25 | 26 | self.previewView = [[DWPreviewView alloc] initWithFrame:CGRectMake(0, 0,[UIScreen mainScreen].bounds.size.width, 240 * [UIScreen mainScreen].bounds.size.width / 320)]; 27 | 28 | NSError *error; 29 | if ([self.videoRecoder setupSession:&error]) { 30 | 31 | self.previewView.session = self.videoRecoder.captureSession; 32 | self.previewView.delegate = self; 33 | 34 | [self.videoRecoder startSession]; 35 | } 36 | 37 | [self.view addSubview:self.previewView]; 38 | 39 | } 40 | 41 | 42 | #pragma mark - 43 | 44 | - (void)previewView:(DWPreviewView *)previewView singleClickAtPoint:(CGPoint)point { 45 | 46 | 47 | NSError *error = nil; 48 | [self.videoRecoder autoFocusAndExposureAtPoint:point error:&error]; 49 | NSLog(@"%@",error); 50 | } 51 | - (void)previewView:(DWPreviewView *)previewView doubleClickAtPoint:(CGPoint)point { 52 | 53 | NSError *error = nil; 54 | [self.videoRecoder switchCamerasWithError:&error]; 55 | NSLog(@"%@",error); 56 | 57 | } 58 | 59 | -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 60 | 61 | 62 | if (!self.videoRecoder.isRecording) { 63 | NSError *error = nil; 64 | [self.videoRecoder startRecordingWithError:&error]; 65 | dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(6 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ 66 | NSError *error = nil; 67 | [self.videoRecoder stopRecordingWithError:&error]; 68 | }); 69 | } else { 70 | NSError *error = nil; 71 | [self.videoRecoder stopRecordingWithError:&error]; 72 | } 73 | 74 | } 75 | 76 | 77 | 78 | 79 | @end 80 | -------------------------------------------------------------------------------- /Demo/DWShortVideoRecoder/DWShortVideoRecoder/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // DWShortVideoRecoder 4 | // 5 | // Created by Damon on 16/8/30. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Podfile: -------------------------------------------------------------------------------- 1 | use_frameworks! 2 | 3 | target 'ResourcesOCPod_Example' do 4 | pod 'ResourcesOCPod', :path => '../' 5 | 6 | target 'ResourcesOCPod_Tests' do 7 | inherit! :search_paths 8 | 9 | 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ResourcesOCPod (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ResourcesOCPod (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ResourcesOCPod: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | ResourcesOCPod: c2181004ff4372cbaff181b1a86f2d94a5306b2b 13 | 14 | PODFILE CHECKSUM: e9ad9915a0bca5536e96d16eb8ca2ca1772f6f24 15 | 16 | COCOAPODS: 1.4.0 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Local Podspecs/ResourcesOCPod.podspec.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ResourcesOCPod", 3 | "version": "0.1.0", 4 | "summary": "A short description of ResourcesOCPod.", 5 | "description": "TODO: Add long description of the pod here.", 6 | "homepage": "https://github.com/Damonvvong/ResourcesOCPod", 7 | "license": { 8 | "type": "MIT", 9 | "file": "LICENSE" 10 | }, 11 | "authors": { 12 | "Damonvvong": "coderonevv@gmail.com" 13 | }, 14 | "source": { 15 | "git": "https://github.com/Damonvvong/ResourcesOCPod.git", 16 | "tag": "0.1.0" 17 | }, 18 | "platforms": { 19 | "ios": "8.0" 20 | }, 21 | "source_files": "ResourcesOCPod/Classes/**/*", 22 | "resource_bundles": { 23 | "ResourcesOCPod": [ 24 | "ResourcesOCPod/image.xcassets" 25 | ] 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - ResourcesOCPod (0.1.0) 3 | 4 | DEPENDENCIES: 5 | - ResourcesOCPod (from `../`) 6 | 7 | EXTERNAL SOURCES: 8 | ResourcesOCPod: 9 | :path: ../ 10 | 11 | SPEC CHECKSUMS: 12 | ResourcesOCPod: c2181004ff4372cbaff181b1a86f2d94a5306b2b 13 | 14 | PODFILE CHECKSUM: e9ad9915a0bca5536e96d16eb8ca2ca1772f6f24 15 | 16 | COCOAPODS: 1.4.0 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## ResourcesOCPod 5 | 6 | Copyright (c) 2018 Damonvvong 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | 26 | Generated by CocoaPods - https://cocoapods.org 27 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Copyright (c) 2018 Damonvvong <coderonevv@gmail.com> 18 | 19 | Permission is hereby granted, free of charge, to any person obtaining a copy 20 | of this software and associated documentation files (the "Software"), to deal 21 | in the Software without restriction, including without limitation the rights 22 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 23 | copies of the Software, and to permit persons to whom the Software is 24 | furnished to do so, subject to the following conditions: 25 | 26 | The above copyright notice and this permission notice shall be included in 27 | all copies or substantial portions of the Software. 28 | 29 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 30 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 31 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 32 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 33 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 34 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 35 | THE SOFTWARE. 36 | 37 | License 38 | MIT 39 | Title 40 | ResourcesOCPod 41 | Type 42 | PSGroupSpecifier 43 | 44 | 45 | FooterText 46 | Generated by CocoaPods - https://cocoapods.org 47 | Title 48 | 49 | Type 50 | PSGroupSpecifier 51 | 52 | 53 | StringsTable 54 | Acknowledgements 55 | Title 56 | Acknowledgements 57 | 58 | 59 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ResourcesOCPod_Example : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ResourcesOCPod_Example 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ResourcesOCPod_ExampleVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ResourcesOCPod_ExampleVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod/ResourcesOCPod.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ResourcesOCPod" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ResourcesOCPod_Example { 2 | umbrella header "Pods-ResourcesOCPod_Example-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Example/Pods-ResourcesOCPod_Example.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod/ResourcesOCPod.framework/Headers" 5 | OTHER_LDFLAGS = $(inherited) -framework "ResourcesOCPod" 6 | PODS_BUILD_DIR = ${BUILD_DIR} 7 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 8 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 9 | PODS_ROOT = ${SRCROOT}/Pods 10 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | Generated by CocoaPods - https://cocoapods.org 4 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | Generated by CocoaPods - https://cocoapods.org 18 | Title 19 | 20 | Type 21 | PSGroupSpecifier 22 | 23 | 24 | StringsTable 25 | Acknowledgements 26 | Title 27 | Acknowledgements 28 | 29 | 30 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ResourcesOCPod_Tests : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ResourcesOCPod_Tests 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ResourcesOCPod_TestsVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ResourcesOCPod_TestsVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests.debug.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod/ResourcesOCPod.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ResourcesOCPod_Tests { 2 | umbrella header "Pods-ResourcesOCPod_Tests-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/Pods-ResourcesOCPod_Tests/Pods-ResourcesOCPod_Tests.release.xcconfig: -------------------------------------------------------------------------------- 1 | FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod" 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -iquote "${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod/ResourcesOCPod.framework/Headers" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourceBundle-ResourcesOCPod-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleIdentifier 8 | ${PRODUCT_BUNDLE_IDENTIFIER} 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundleName 12 | ${PRODUCT_NAME} 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 0.1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourcesOCPod-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_ResourcesOCPod : NSObject 3 | @end 4 | @implementation PodsDummy_ResourcesOCPod 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourcesOCPod-prefix.pch: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourcesOCPod-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | #import "DWImage.h" 14 | 15 | FOUNDATION_EXPORT double ResourcesOCPodVersionNumber; 16 | FOUNDATION_EXPORT const unsigned char ResourcesOCPodVersionString[]; 17 | 18 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourcesOCPod.modulemap: -------------------------------------------------------------------------------- 1 | framework module ResourcesOCPod { 2 | umbrella header "ResourcesOCPod-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Pods/Target Support Files/ResourcesOCPod/ResourcesOCPod.xcconfig: -------------------------------------------------------------------------------- 1 | CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/ResourcesOCPod 2 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 3 | HEADER_SEARCH_PATHS = "${PODS_ROOT}/Headers/Private" "${PODS_ROOT}/Headers/Public" 4 | PODS_BUILD_DIR = ${BUILD_DIR} 5 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 6 | PODS_ROOT = ${SRCROOT} 7 | PODS_TARGET_SRCROOT = ${PODS_ROOT}/../.. 8 | PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier} 9 | SKIP_INSTALL = YES 10 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/DWAppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWAppDelegate.h 3 | // ResourcesOCPod 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DWAppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | @end 16 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/DWAppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWAppDelegate.m 3 | // ResourcesOCPod 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | #import "DWAppDelegate.h" 10 | 11 | @implementation DWAppDelegate 12 | 13 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions 14 | { 15 | // Override point for customization after application launch. 16 | return YES; 17 | } 18 | 19 | - (void)applicationWillResignActive:(UIApplication *)application 20 | { 21 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 22 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 23 | } 24 | 25 | - (void)applicationDidEnterBackground:(UIApplication *)application 26 | { 27 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 28 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 29 | } 30 | 31 | - (void)applicationWillEnterForeground:(UIApplication *)application 32 | { 33 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | - (void)applicationDidBecomeActive:(UIApplication *)application 37 | { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application 42 | { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | @end 47 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/DWViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWViewController.h 3 | // ResourcesOCPod 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | 11 | @interface DWViewController : UIViewController 12 | 13 | @end 14 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/DWViewController.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWViewController.m 3 | // ResourcesOCPod 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | #import "DWViewController.h" 10 | #import 11 | 12 | @interface DWViewController () 13 | 14 | @end 15 | 16 | @implementation DWViewController 17 | 18 | - (void)viewDidLoad 19 | { 20 | [super viewDidLoad]; 21 | 22 | UIImageView *image1View = [[UIImageView alloc] initWithImage:[[[DWImage alloc] init] image1InPod]]; 23 | image1View.frame = CGRectMake(0, 0, 100, 100); 24 | image1View.center = self.view.center; 25 | 26 | UIImageView *image2View = [[UIImageView alloc] initWithImage:[[[DWImage alloc] init] image2InPod]]; 27 | image2View.frame = CGRectMake(100, 100, 100, 100); 28 | 29 | [self.view addSubview:image1View]; 30 | [self.view addSubview:image2View]; 31 | 32 | // Do any additional setup after loading the view, typically from a nib. 33 | } 34 | 35 | - (void)didReceiveMemoryWarning 36 | { 37 | [super didReceiveMemoryWarning]; 38 | // Dispose of any resources that can be recreated. 39 | } 40 | 41 | @end 42 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } 99 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/image1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "image1@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "image1@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/image1.imageset/image1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/image1.imageset/image1@2x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/image1.imageset/image1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/Images.xcassets/image1.imageset/image1@3x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/ResourcesOCPod-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleDisplayName 8 | ${PRODUCT_NAME} 9 | CFBundleExecutable 10 | ${EXECUTABLE_NAME} 11 | CFBundleIdentifier 12 | $(PRODUCT_BUNDLE_IDENTIFIER) 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | ${PRODUCT_NAME} 17 | CFBundlePackageType 18 | APPL 19 | CFBundleShortVersionString 20 | 1.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleVersion 24 | 1.0 25 | LSRequiresIPhoneOS 26 | 27 | UILaunchStoryboardName 28 | LaunchScreen 29 | UIMainStoryboardFile 30 | Main 31 | UIRequiredDeviceCapabilities 32 | 33 | armv7 34 | 35 | UISupportedInterfaceOrientations 36 | 37 | UIInterfaceOrientationPortrait 38 | UIInterfaceOrientationLandscapeLeft 39 | UIInterfaceOrientationLandscapeRight 40 | 41 | UISupportedInterfaceOrientations~ipad 42 | 43 | UIInterfaceOrientationPortrait 44 | UIInterfaceOrientationPortraitUpsideDown 45 | UIInterfaceOrientationLandscapeLeft 46 | UIInterfaceOrientationLandscapeRight 47 | 48 | 49 | 50 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/ResourcesOCPod-Prefix.pch: -------------------------------------------------------------------------------- 1 | // 2 | // Prefix header 3 | // 4 | // The contents of this file are implicitly included at the beginning of every source file. 5 | // 6 | 7 | #import 8 | 9 | #ifndef __IPHONE_5_0 10 | #warning "This project uses features only available in iOS SDK 5.0 and later." 11 | #endif 12 | 13 | #ifdef __OBJC__ 14 | @import UIKit; 15 | @import Foundation; 16 | #endif 17 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/ResourcesOCPod/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // ResourcesOCPod 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | @import UIKit; 10 | #import "DWAppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) 13 | { 14 | @autoreleasepool { 15 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([DWAppDelegate class])); 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Tests/Tests-Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundlePackageType 14 | BNDL 15 | CFBundleShortVersionString 16 | 1.0 17 | CFBundleSignature 18 | ???? 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Tests/Tests-Prefix.pch: -------------------------------------------------------------------------------- 1 | // The contents of this file are implicitly included at the beginning of every test case source file. 2 | 3 | #ifdef __OBJC__ 4 | 5 | 6 | 7 | #endif 8 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Tests/Tests.m: -------------------------------------------------------------------------------- 1 | // 2 | // ResourcesOCPodTests.m 3 | // ResourcesOCPodTests 4 | // 5 | // Created by Damonvvong on 03/27/2018. 6 | // Copyright (c) 2018 Damonvvong. All rights reserved. 7 | // 8 | 9 | @import XCTest; 10 | 11 | @interface Tests : XCTestCase 12 | 13 | @end 14 | 15 | @implementation Tests 16 | 17 | - (void)setUp 18 | { 19 | [super setUp]; 20 | // Put setup code here. This method is called before the invocation of each test method in the class. 21 | } 22 | 23 | - (void)tearDown 24 | { 25 | // Put teardown code here. This method is called after the invocation of each test method in the class. 26 | [super tearDown]; 27 | } 28 | 29 | - (void)testExample 30 | { 31 | XCTFail(@"No implementation for \"%s\"", __PRETTY_FUNCTION__); 32 | } 33 | 34 | @end 35 | 36 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/Example/Tests/en.lproj/InfoPlist.strings: -------------------------------------------------------------------------------- 1 | /* Localized versions of Info.plist keys */ 2 | 3 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2018 Damonvvong 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/README.md: -------------------------------------------------------------------------------- 1 | # ResourcesOCPod 2 | 3 | 这个 Demo 主要是用来展示相同配置下。非越狱机可以正常读取图片。越狱机就不可以。 4 | 5 | .podspec 里面需要写 resource_bundles 6 | 图片放到 pod 的 image.xcassets 7 | Podfile 里需要写 use_frameworks! 8 | 9 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod.podspec: -------------------------------------------------------------------------------- 1 | Pod::Spec.new do |s| 2 | s.name = 'ResourcesOCPod' 3 | s.version = '0.1.0' 4 | s.summary = 'A short description of ResourcesOCPod.' 5 | s.description = <<-DESC 6 | TODO: Add long description of the pod here. 7 | DESC 8 | s.homepage = 'https://github.com/Damonvvong/ResourcesOCPod' 9 | s.license = { :type => 'MIT', :file => 'LICENSE' } 10 | s.author = { 'Damonvvong' => 'coderonevv@gmail.com' } 11 | s.source = { :git => 'https://github.com/Damonvvong/ResourcesOCPod.git', :tag => s.version.to_s } 12 | s.ios.deployment_target = '8.0' 13 | s.source_files = 'ResourcesOCPod/Classes/**/*' 14 | #s.resources = 'ResourcesOCPod/image.xcassets' 15 | s.resource_bundles = { 16 | 'ResourcesOCPod' => ['ResourcesOCPod/image.xcassets'] 17 | } 18 | end 19 | 20 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Assets/.gitkeep -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Classes/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Classes/.gitkeep -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Classes/DWImage.h: -------------------------------------------------------------------------------- 1 | // 2 | // DWImage.h 3 | // ResourcesOCPod 4 | // 5 | // Created by damonwong on 2018/3/27. 6 | // 7 | 8 | #import 9 | 10 | @interface DWImage : NSObject 11 | - (UIImage *) image1InPod; 12 | - (UIImage *) image2InPod; 13 | @end 14 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/Classes/DWImage.m: -------------------------------------------------------------------------------- 1 | // 2 | // DWImage.m 3 | // ResourcesOCPod 4 | // 5 | // Created by damonwong on 2018/3/27. 6 | // 7 | 8 | #import "DWImage.h" 9 | 10 | @implementation DWImage 11 | 12 | - (UIImage *) image1InPod { 13 | NSBundle *bundle = [NSBundle bundleForClass:NSClassFromString(@"DWImage")]; 14 | NSString *name = [[bundle.bundleIdentifier componentsSeparatedByString:@"."] lastObject]; 15 | NSURL *url = [bundle URLForResource:name withExtension:@"bundle"]; 16 | if (url != NULL) { 17 | return [UIImage imageNamed:@"image1" 18 | inBundle:[NSBundle bundleWithURL:url] 19 | compatibleWithTraitCollection:nil]; 20 | } else { 21 | return [UIImage imageNamed:@"image1" 22 | inBundle:[NSBundle bundleForClass:NSClassFromString(@"DWImage")] 23 | compatibleWithTraitCollection:nil]; 24 | } 25 | } 26 | 27 | - (UIImage *) image2InPod { 28 | return [UIImage imageNamed:@"image2" 29 | inBundle:[NSBundle bundleForClass:NSClassFromString(@"DWImage")] 30 | compatibleWithTraitCollection:nil]; 31 | } 32 | 33 | @end 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image1.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "image1@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "image1@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image1.imageset/image1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image1.imageset/image1@2x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image1.imageset/image1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image1.imageset/image1@3x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image2.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "filename" : "image1@2x.png", 10 | "scale" : "2x" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "filename" : "image1@3x.png", 15 | "scale" : "3x" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image2.imageset/image1@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image2.imageset/image1@2x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image2.imageset/image1@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/ResourcesOCPod/image.xcassets/image2.imageset/image1@3x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/imageInAssetCatalog@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/imageInAssetCatalog@2x.png -------------------------------------------------------------------------------- /Demo/OnlyCrashOnJailbreakDemo/imageInAssetCatalog@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/OnlyCrashOnJailbreakDemo/imageInAssetCatalog@3x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Podfile: -------------------------------------------------------------------------------- 1 | source 'https://github.com/CocoaPods/Specs.git' 2 | use_frameworks! 3 | inhibit_all_warnings! 4 | platform :ios, '9.0' 5 | 6 | target 'ResourceManageDemo' do 7 | pod 'SwiftGen' 8 | 9 | script_phase :name => '同步图片', :script => '$PROJECT_DIR/script/AutoAsset $PROJECT_DIR/synchronizeImageFolder $PROJECT_DIR/synchronizeImageFolder_backup $PROJECT_DIR/ResourceManageDemo/Assets.xcassets', :execution_position => :before_compile 10 | 11 | script_phase :name => '生成SwiftGen文件', :script => '$PODS_ROOT/SwiftGen/bin/swiftgen xcassets $PROJECT_DIR/ResourceManageDemo/Assets.xcassets --templatePath $PROJECT_DIR/script/SwiftGenTemplate.stencil --output $PROJECT_DIR/ResourceManageDemo/Assets.swift', :execution_position => :before_compile 12 | end 13 | 14 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Podfile.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SwiftGen (5.3.0) 3 | 4 | DEPENDENCIES: 5 | - SwiftGen 6 | 7 | SPEC CHECKSUMS: 8 | SwiftGen: 4379bd3640b0a212a0f6ea3c494adba385513d10 9 | 10 | PODFILE CHECKSUM: 8d2b38c07d37b4e8a38e0ebbc40e1855183c4e1c 11 | 12 | COCOAPODS: 1.4.0 13 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Manifest.lock: -------------------------------------------------------------------------------- 1 | PODS: 2 | - SwiftGen (5.3.0) 3 | 4 | DEPENDENCIES: 5 | - SwiftGen 6 | 7 | SPEC CHECKSUMS: 8 | SwiftGen: 4379bd3640b0a212a0f6ea3c494adba385513d10 9 | 10 | PODFILE CHECKSUM: 8d2b38c07d37b4e8a38e0ebbc40e1855183c4e1c 11 | 12 | COCOAPODS: 1.4.0 13 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 SwiftGen 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/bin/swiftgen: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/bin/swiftgen -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Commander: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Commander -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Commander 11 | CFBundleIdentifier 12 | org.cocoapods.Commander 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Commander 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/A/Commander: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/A/Commander -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Commander 11 | CFBundleIdentifier 12 | org.cocoapods.Commander 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Commander 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/Current/Commander: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/Current/Commander -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Commander.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Commander 11 | CFBundleIdentifier 12 | org.cocoapods.Commander 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Commander 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Kanna: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Kanna -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Kanna 11 | CFBundleIdentifier 12 | org.cocoapods.Kanna 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Kanna 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 4.0.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/A/Kanna: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/A/Kanna -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Kanna 11 | CFBundleIdentifier 12 | org.cocoapods.Kanna 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Kanna 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 4.0.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | BN1ArtJ5Ez3TiiDj5C0ZtuyxaC4= 10 | 11 | 12 | files2 13 | 14 | Resources/Info.plist 15 | 16 | hash 17 | 18 | BN1ArtJ5Ez3TiiDj5C0ZtuyxaC4= 19 | 20 | hash2 21 | 22 | RFtWQPgdKRIBOXqScLuVpI3JPTzcffl1C9egDli17mw= 23 | 24 | 25 | 26 | rules 27 | 28 | ^Resources/ 29 | 30 | ^Resources/.*\.lproj/ 31 | 32 | optional 33 | 34 | weight 35 | 1000 36 | 37 | ^Resources/.*\.lproj/locversion.plist$ 38 | 39 | omit 40 | 41 | weight 42 | 1100 43 | 44 | ^Resources/Base\.lproj/ 45 | 46 | weight 47 | 1010 48 | 49 | ^version.plist$ 50 | 51 | 52 | rules2 53 | 54 | .*\.dSYM($|/) 55 | 56 | weight 57 | 11 58 | 59 | ^(.*/)?\.DS_Store$ 60 | 61 | omit 62 | 63 | weight 64 | 2000 65 | 66 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 67 | 68 | nested 69 | 70 | weight 71 | 10 72 | 73 | ^.* 74 | 75 | ^Info\.plist$ 76 | 77 | omit 78 | 79 | weight 80 | 20 81 | 82 | ^PkgInfo$ 83 | 84 | omit 85 | 86 | weight 87 | 20 88 | 89 | ^Resources/ 90 | 91 | weight 92 | 20 93 | 94 | ^Resources/.*\.lproj/ 95 | 96 | optional 97 | 98 | weight 99 | 1000 100 | 101 | ^Resources/.*\.lproj/locversion.plist$ 102 | 103 | omit 104 | 105 | weight 106 | 1100 107 | 108 | ^Resources/Base\.lproj/ 109 | 110 | weight 111 | 1010 112 | 113 | ^[^/]+$ 114 | 115 | nested 116 | 117 | weight 118 | 10 119 | 120 | ^embedded\.provisionprofile$ 121 | 122 | weight 123 | 20 124 | 125 | ^version\.plist$ 126 | 127 | weight 128 | 20 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/Kanna: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/Kanna -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Kanna.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Kanna 11 | CFBundleIdentifier 12 | org.cocoapods.Kanna 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Kanna 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 4.0.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/PathKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/PathKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | PathKit 11 | CFBundleIdentifier 12 | org.cocoapods.PathKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | PathKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/A/PathKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/A/PathKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | PathKit 11 | CFBundleIdentifier 12 | org.cocoapods.PathKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | PathKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | 8Nf01LFHnUa6iHh6aL4ORzMaNEw= 10 | 11 | 12 | files2 13 | 14 | Resources/Info.plist 15 | 16 | hash 17 | 18 | 8Nf01LFHnUa6iHh6aL4ORzMaNEw= 19 | 20 | hash2 21 | 22 | XSnNeVQmOnO4V+NfDCZjoR/GFQNPn5ZnmIvfx6XIyDA= 23 | 24 | 25 | 26 | rules 27 | 28 | ^Resources/ 29 | 30 | ^Resources/.*\.lproj/ 31 | 32 | optional 33 | 34 | weight 35 | 1000 36 | 37 | ^Resources/.*\.lproj/locversion.plist$ 38 | 39 | omit 40 | 41 | weight 42 | 1100 43 | 44 | ^Resources/Base\.lproj/ 45 | 46 | weight 47 | 1010 48 | 49 | ^version.plist$ 50 | 51 | 52 | rules2 53 | 54 | .*\.dSYM($|/) 55 | 56 | weight 57 | 11 58 | 59 | ^(.*/)?\.DS_Store$ 60 | 61 | omit 62 | 63 | weight 64 | 2000 65 | 66 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 67 | 68 | nested 69 | 70 | weight 71 | 10 72 | 73 | ^.* 74 | 75 | ^Info\.plist$ 76 | 77 | omit 78 | 79 | weight 80 | 20 81 | 82 | ^PkgInfo$ 83 | 84 | omit 85 | 86 | weight 87 | 20 88 | 89 | ^Resources/ 90 | 91 | weight 92 | 20 93 | 94 | ^Resources/.*\.lproj/ 95 | 96 | optional 97 | 98 | weight 99 | 1000 100 | 101 | ^Resources/.*\.lproj/locversion.plist$ 102 | 103 | omit 104 | 105 | weight 106 | 1100 107 | 108 | ^Resources/Base\.lproj/ 109 | 110 | weight 111 | 1010 112 | 113 | ^[^/]+$ 114 | 115 | nested 116 | 117 | weight 118 | 10 119 | 120 | ^embedded\.provisionprofile$ 121 | 122 | weight 123 | 20 124 | 125 | ^version\.plist$ 126 | 127 | weight 128 | 20 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/PathKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/PathKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/PathKit.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | PathKit 11 | CFBundleIdentifier 12 | org.cocoapods.PathKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | PathKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.8.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Stencil 11 | CFBundleIdentifier 12 | org.cocoapods.Stencil 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Stencil 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.10.1 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Stencil: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Stencil -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Stencil 11 | CFBundleIdentifier 12 | org.cocoapods.Stencil 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Stencil 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.10.1 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/A/Stencil: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/A/Stencil -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/A/_CodeSignature/CodeResources: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | files 6 | 7 | Resources/Info.plist 8 | 9 | fyS6VeaWaetcU/krgkEv0LZJAxs= 10 | 11 | 12 | files2 13 | 14 | Resources/Info.plist 15 | 16 | hash 17 | 18 | fyS6VeaWaetcU/krgkEv0LZJAxs= 19 | 20 | hash2 21 | 22 | 6bnCaDJr2Pc9BrVCHZgirtNDkmB0OLpwX4kU4/zxKG0= 23 | 24 | 25 | 26 | rules 27 | 28 | ^Resources/ 29 | 30 | ^Resources/.*\.lproj/ 31 | 32 | optional 33 | 34 | weight 35 | 1000 36 | 37 | ^Resources/.*\.lproj/locversion.plist$ 38 | 39 | omit 40 | 41 | weight 42 | 1100 43 | 44 | ^Resources/Base\.lproj/ 45 | 46 | weight 47 | 1010 48 | 49 | ^version.plist$ 50 | 51 | 52 | rules2 53 | 54 | .*\.dSYM($|/) 55 | 56 | weight 57 | 11 58 | 59 | ^(.*/)?\.DS_Store$ 60 | 61 | omit 62 | 63 | weight 64 | 2000 65 | 66 | ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ 67 | 68 | nested 69 | 70 | weight 71 | 10 72 | 73 | ^.* 74 | 75 | ^Info\.plist$ 76 | 77 | omit 78 | 79 | weight 80 | 20 81 | 82 | ^PkgInfo$ 83 | 84 | omit 85 | 86 | weight 87 | 20 88 | 89 | ^Resources/ 90 | 91 | weight 92 | 20 93 | 94 | ^Resources/.*\.lproj/ 95 | 96 | optional 97 | 98 | weight 99 | 1000 100 | 101 | ^Resources/.*\.lproj/locversion.plist$ 102 | 103 | omit 104 | 105 | weight 106 | 1100 107 | 108 | ^Resources/Base\.lproj/ 109 | 110 | weight 111 | 1010 112 | 113 | ^[^/]+$ 114 | 115 | nested 116 | 117 | weight 118 | 10 119 | 120 | ^embedded\.provisionprofile$ 121 | 122 | weight 123 | 20 124 | 125 | ^version\.plist$ 126 | 127 | weight 128 | 20 129 | 130 | 131 | 132 | 133 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Stencil 11 | CFBundleIdentifier 12 | org.cocoapods.Stencil 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Stencil 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.10.1 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/Stencil: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Stencil.framework/Versions/Current/Stencil -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | StencilSwiftKit 11 | CFBundleIdentifier 12 | org.cocoapods.StencilSwiftKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | StencilSwiftKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.4.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/StencilSwiftKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/StencilSwiftKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | StencilSwiftKit 11 | CFBundleIdentifier 12 | org.cocoapods.StencilSwiftKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | StencilSwiftKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.4.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/StencilSwiftKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/A/StencilSwiftKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | StencilSwiftKit 11 | CFBundleIdentifier 12 | org.cocoapods.StencilSwiftKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | StencilSwiftKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.4.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/StencilSwiftKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/StencilSwiftKit.framework/Versions/Current/StencilSwiftKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | SwiftGenKit 11 | CFBundleIdentifier 12 | com.alisoftware.SwiftGenKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SwiftGenKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.2.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/SwiftGenKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/SwiftGenKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | SwiftGenKit 11 | CFBundleIdentifier 12 | com.alisoftware.SwiftGenKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SwiftGenKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.2.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/SwiftGenKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/A/SwiftGenKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | SwiftGenKit 11 | CFBundleIdentifier 12 | com.alisoftware.SwiftGenKit 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | SwiftGenKit 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 2.2.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/SwiftGenKit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/SwiftGenKit.framework/Versions/Current/SwiftGenKit -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Yams 11 | CFBundleIdentifier 12 | org.cocoapods.Yams 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Yams 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.6.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/A/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Yams 11 | CFBundleIdentifier 12 | org.cocoapods.Yams 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Yams 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.6.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/A/Yams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/A/Yams -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/Current/Resources/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | BuildMachineOSBuild 6 | 17D102 7 | CFBundleDevelopmentRegion 8 | en 9 | CFBundleExecutable 10 | Yams 11 | CFBundleIdentifier 12 | org.cocoapods.Yams 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleName 16 | Yams 17 | CFBundlePackageType 18 | FMWK 19 | CFBundleShortVersionString 20 | 0.6.0 21 | CFBundleSignature 22 | ???? 23 | CFBundleSupportedPlatforms 24 | 25 | MacOSX 26 | 27 | CFBundleVersion 28 | 1 29 | DTCompiler 30 | com.apple.compilers.llvm.clang.1_0 31 | DTPlatformBuild 32 | 9C40b 33 | DTPlatformVersion 34 | GM 35 | DTSDKBuild 36 | 17C76 37 | DTSDKName 38 | macosx10.13 39 | DTXcode 40 | 0920 41 | DTXcodeBuild 42 | 9C40b 43 | 44 | 45 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/Current/Yams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Versions/Current/Yams -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Yams: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/Yams.framework/Yams -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftAppKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftAppKit.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCore.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreData.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreData.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreFoundation.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreFoundation.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreGraphics.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreGraphics.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreImage.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftCoreImage.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftDarwin.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftDarwin.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftDispatch.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftDispatch.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftFoundation.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftFoundation.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftIOKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftIOKit.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftMetal.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftMetal.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftObjectiveC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftObjectiveC.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftQuartzCore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftQuartzCore.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftXPC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftXPC.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftos.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/Pods/SwiftGen/lib/libswiftos.dylib -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/colors/literals-swift3.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if palettes %} 4 | {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %} 5 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 6 | #if os(OSX) 7 | import AppKit 8 | {% if enumName != 'NSColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %} 9 | #elseif os(iOS) || os(tvOS) || os(watchOS) 10 | import UIKit 11 | {% if enumName != 'UIColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %} 12 | #endif 13 | 14 | // swiftlint:disable superfluous_disable_command 15 | // swiftlint:disable file_length 16 | 17 | // swiftlint:disable identifier_name line_length type_body_length 18 | {{accessModifier}} extension {{enumName}} { 19 | {% macro h2f hex %}{{hex|hexToInt|int255toFloat}}{% endmacro %} 20 | {% macro enumBlock colors sp %} 21 | {{sp}} {% for color in colors %} 22 | {{sp}} /// 0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}} (r: {{color.red|hexToInt}}, g: {{color.green|hexToInt}}, b: {{color.blue|hexToInt}}, a: {{color.alpha|hexToInt}}) 23 | {{sp}} static let {{color.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = #colorLiteral(red: {% call h2f color.red %}, green: {% call h2f color.green %}, blue: {% call h2f color.blue %}, alpha: {% call h2f color.alpha %}) 24 | {{sp}} {% endfor %} 25 | {% endmacro %} 26 | {% if palettes.count > 1 %} 27 | {% for palette in palettes %} 28 | enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 29 | {% call enumBlock palette.colors " " %} 30 | } 31 | {% endfor %} 32 | {% else %} 33 | {% call enumBlock palettes.first.colors "" %} 34 | {% endif %} 35 | } 36 | // swiftlint:enable identifier_name line_length type_body_length 37 | {% else %} 38 | // No color found 39 | {% endif %} 40 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/colors/literals-swift4.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if palettes %} 4 | {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %} 5 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 6 | #if os(OSX) 7 | import AppKit 8 | {% if enumName != 'NSColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %} 9 | #elseif os(iOS) || os(tvOS) || os(watchOS) 10 | import UIKit 11 | {% if enumName != 'UIColor' %}{{accessModifier}} enum {{enumName}} { }{% endif %} 12 | #endif 13 | 14 | // swiftlint:disable superfluous_disable_command 15 | // swiftlint:disable file_length 16 | 17 | // swiftlint:disable identifier_name line_length type_body_length 18 | {{accessModifier}} extension {{enumName}} { 19 | {% macro h2f hex %}{{hex|hexToInt|int255toFloat}}{% endmacro %} 20 | {% macro enumBlock colors sp %} 21 | {{sp}} {% for color in colors %} 22 | {{sp}} /// 0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}} (r: {{color.red|hexToInt}}, g: {{color.green|hexToInt}}, b: {{color.blue|hexToInt}}, a: {{color.alpha|hexToInt}}) 23 | {{sp}} static let {{color.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = #colorLiteral(red: {% call h2f color.red %}, green: {% call h2f color.green %}, blue: {% call h2f color.blue %}, alpha: {% call h2f color.alpha %}) 24 | {{sp}} {% endfor %} 25 | {% endmacro %} 26 | {% if palettes.count > 1 %} 27 | {% for palette in palettes %} 28 | enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 29 | {% call enumBlock palette.colors " " %} 30 | } 31 | {% endfor %} 32 | {% else %} 33 | {% call enumBlock palettes.first.colors "" %} 34 | {% endif %} 35 | } 36 | // swiftlint:enable identifier_name line_length type_body_length 37 | {% else %} 38 | // No color found 39 | {% endif %} 40 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/colors/swift2.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if palettes %} 4 | {% set colorAlias %}{{param.colorAliasName|default:"Color"}}{% endset %} 5 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 6 | #if os(OSX) 7 | import AppKit.NSColor 8 | {{accessModifier}} typealias {{colorAlias}} = NSColor 9 | #elseif os(iOS) || os(tvOS) || os(watchOS) 10 | import UIKit.UIColor 11 | {{accessModifier}} typealias {{colorAlias}} = UIColor 12 | #endif 13 | 14 | // swiftlint:disable superfluous_disable_command 15 | // swiftlint:disable file_length 16 | 17 | // swiftlint:disable operator_usage_whitespace 18 | {{accessModifier}} extension {{colorAlias}} { 19 | convenience init(rgbaValue: UInt32) { 20 | let red = CGFloat((rgbaValue >> 24) & 0xff) / 255.0 21 | let green = CGFloat((rgbaValue >> 16) & 0xff) / 255.0 22 | let blue = CGFloat((rgbaValue >> 8) & 0xff) / 255.0 23 | let alpha = CGFloat((rgbaValue ) & 0xff) / 255.0 24 | 25 | self.init(red: red, green: green, blue: blue, alpha: alpha) 26 | } 27 | } 28 | // swiftlint:enable operator_usage_whitespace 29 | 30 | // swiftlint:disable identifier_name line_length type_body_length 31 | {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %} 32 | {{accessModifier}} struct {{enumName}} { 33 | {{accessModifier}} let rgbaValue: UInt32 34 | {{accessModifier}} var color: {{colorAlias}} { return {{colorAlias}}(named: self) } 35 | 36 | {% macro rgbaValue color %}0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}{% endmacro %} 37 | {% macro enumBlock colors sp %} 38 | {{sp}} {% for color in colors %} 39 | {{sp}} /// 40 | {{sp}} /// Alpha: {{color.alpha|hexToInt|int255toFloat|percent}}
(0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}) 41 | {{sp}} {{accessModifier}} static let {{color.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} = {{enumName}}(rgbaValue: {% call rgbaValue color %}) 42 | {{sp}} {% endfor %} 43 | {% endmacro %} 44 | {% if palettes.count > 1 %} 45 | {% for palette in palettes %} 46 | {{accessModifier}} enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call enumBlock palette.colors " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call enumBlock palettes.first.colors "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable identifier_name line_length type_body_length 55 | 56 | {{accessModifier}} extension {{colorAlias}} { 57 | convenience init(named color: {{enumName}}) { 58 | self.init(rgbaValue: color.rgbaValue) 59 | } 60 | } 61 | {% else %} 62 | // No color found 63 | {% endif %} 64 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/colors/swift3.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if palettes %} 4 | {% set colorAlias %}{{param.colorAliasName|default:"Color"}}{% endset %} 5 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 6 | #if os(OSX) 7 | import AppKit.NSColor 8 | {{accessModifier}} typealias {{colorAlias}} = NSColor 9 | #elseif os(iOS) || os(tvOS) || os(watchOS) 10 | import UIKit.UIColor 11 | {{accessModifier}} typealias {{colorAlias}} = UIColor 12 | #endif 13 | 14 | // swiftlint:disable superfluous_disable_command 15 | // swiftlint:disable file_length 16 | 17 | // swiftlint:disable operator_usage_whitespace 18 | {{accessModifier}} extension {{colorAlias}} { 19 | convenience init(rgbaValue: UInt32) { 20 | let red = CGFloat((rgbaValue >> 24) & 0xff) / 255.0 21 | let green = CGFloat((rgbaValue >> 16) & 0xff) / 255.0 22 | let blue = CGFloat((rgbaValue >> 8) & 0xff) / 255.0 23 | let alpha = CGFloat((rgbaValue ) & 0xff) / 255.0 24 | 25 | self.init(red: red, green: green, blue: blue, alpha: alpha) 26 | } 27 | } 28 | // swiftlint:enable operator_usage_whitespace 29 | 30 | // swiftlint:disable identifier_name line_length type_body_length 31 | {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %} 32 | {{accessModifier}} struct {{enumName}} { 33 | {{accessModifier}} let rgbaValue: UInt32 34 | {{accessModifier}} var color: {{colorAlias}} { return {{colorAlias}}(named: self) } 35 | 36 | {% macro rgbaValue color %}0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}{% endmacro %} 37 | {% macro enumBlock colors sp %} 38 | {{sp}} {% for color in colors %} 39 | {{sp}} /// 40 | {{sp}} /// Alpha: {{color.alpha|hexToInt|int255toFloat|percent}}
(0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}) 41 | {{sp}} {{accessModifier}} static let {{color.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}(rgbaValue: {% call rgbaValue color %}) 42 | {{sp}} {% endfor %} 43 | {% endmacro %} 44 | {% if palettes.count > 1 %} 45 | {% for palette in palettes %} 46 | {{accessModifier}} enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call enumBlock palette.colors " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call enumBlock palettes.first.colors "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable identifier_name line_length type_body_length 55 | 56 | {{accessModifier}} extension {{colorAlias}} { 57 | convenience init(named color: {{enumName}}) { 58 | self.init(rgbaValue: color.rgbaValue) 59 | } 60 | } 61 | {% else %} 62 | // No color found 63 | {% endif %} 64 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/colors/swift4.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if palettes %} 4 | {% set colorAlias %}{{param.colorAliasName|default:"Color"}}{% endset %} 5 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 6 | #if os(OSX) 7 | import AppKit.NSColor 8 | {{accessModifier}} typealias {{colorAlias}} = NSColor 9 | #elseif os(iOS) || os(tvOS) || os(watchOS) 10 | import UIKit.UIColor 11 | {{accessModifier}} typealias {{colorAlias}} = UIColor 12 | #endif 13 | 14 | // swiftlint:disable superfluous_disable_command 15 | // swiftlint:disable file_length 16 | 17 | // swiftlint:disable operator_usage_whitespace 18 | {{accessModifier}} extension {{colorAlias}} { 19 | convenience init(rgbaValue: UInt32) { 20 | let red = CGFloat((rgbaValue >> 24) & 0xff) / 255.0 21 | let green = CGFloat((rgbaValue >> 16) & 0xff) / 255.0 22 | let blue = CGFloat((rgbaValue >> 8) & 0xff) / 255.0 23 | let alpha = CGFloat((rgbaValue ) & 0xff) / 255.0 24 | 25 | self.init(red: red, green: green, blue: blue, alpha: alpha) 26 | } 27 | } 28 | // swiftlint:enable operator_usage_whitespace 29 | 30 | // swiftlint:disable identifier_name line_length type_body_length 31 | {% set enumName %}{{param.enumName|default:"ColorName"}}{% endset %} 32 | {{accessModifier}} struct {{enumName}} { 33 | {{accessModifier}} let rgbaValue: UInt32 34 | {{accessModifier}} var color: {{colorAlias}} { return {{colorAlias}}(named: self) } 35 | 36 | {% macro rgbaValue color %}0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}{% endmacro %} 37 | {% macro enumBlock colors sp %} 38 | {{sp}} {% for color in colors %} 39 | {{sp}} /// 40 | {{sp}} /// Alpha: {{color.alpha|hexToInt|int255toFloat|percent}}
(0x{{color.red}}{{color.green}}{{color.blue}}{{color.alpha}}) 41 | {{sp}} {{accessModifier}} static let {{color.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}(rgbaValue: {% call rgbaValue color %}) 42 | {{sp}} {% endfor %} 43 | {% endmacro %} 44 | {% if palettes.count > 1 %} 45 | {% for palette in palettes %} 46 | {{accessModifier}} enum {{palette.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call enumBlock palette.colors " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call enumBlock palettes.first.colors "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable identifier_name line_length type_body_length 55 | 56 | {{accessModifier}} extension {{colorAlias}} { 57 | convenience init(named color: {{enumName}}) { 58 | self.init(rgbaValue: color.rgbaValue) 59 | } 60 | } 61 | {% else %} 62 | // No color found 63 | {% endif %} 64 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/fonts/swift2.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if families %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | #if os(OSX) 6 | import AppKit.NSFont 7 | {{accessModifier}} typealias Font = NSFont 8 | #elseif os(iOS) || os(tvOS) || os(watchOS) 9 | import UIKit.UIFont 10 | {{accessModifier}} typealias Font = UIFont 11 | #endif 12 | 13 | // swiftlint:disable superfluous_disable_command 14 | // swiftlint:disable file_length 15 | 16 | {{accessModifier}} struct FontConvertible { 17 | {{accessModifier}} let name: String 18 | {{accessModifier}} let family: String 19 | {{accessModifier}} let path: String 20 | 21 | {{accessModifier}} func font(size: CGFloat) -> Font! { 22 | return Font(font: self, size: size) 23 | } 24 | 25 | {{accessModifier}} func register() { 26 | guard let url = url else { return } 27 | var errorRef: Unmanaged? 28 | CTFontManagerRegisterFontsForURL(url as CFURL, .Process, &errorRef) 29 | } 30 | 31 | fileprivate var url: NSURL? { 32 | let bundle = NSBundle(forClass: BundleToken.self) 33 | return bundle.URLForResource(path, withExtension: nil) 34 | } 35 | } 36 | 37 | {{accessModifier}} extension Font { 38 | convenience init!(font: FontConvertible, size: CGFloat) { 39 | #if os(iOS) || os(tvOS) || os(watchOS) 40 | if !UIFont.fontNamesForFamilyName(font.family).contains(font.name) { 41 | font.register() 42 | } 43 | #elseif os(OSX) 44 | if let url = font.url, CTFontManagerGetScopeForURL(url as CFURL) == .None { 45 | font.register() 46 | } 47 | #endif 48 | 49 | self.init(name: font.name, size: size) 50 | } 51 | } 52 | 53 | // swiftlint:disable identifier_name line_length type_body_length 54 | {% macro transformPath path %}{% filter removeNewlines %} 55 | {% if param.preservePath %} 56 | {{path}} 57 | {% else %} 58 | {{path|basename}} 59 | {% endif %} 60 | {% endfilter %}{% endmacro %} 61 | {{accessModifier}} enum {{param.enumName|default:"FontFamily"}} { 62 | {% for family in families %} 63 | {{accessModifier}} enum {{family.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 64 | {% for font in family.fonts %} 65 | {{accessModifier}} static let {{font.style|swiftIdentifier:"pretty"|escapeReservedKeywords}} = FontConvertible("{{font.name}}", family: "{{family.name}}", path: "{% call transformPath font.path %}") 66 | {% endfor %} 67 | } 68 | {% endfor %} 69 | } 70 | // swiftlint:enable identifier_name line_length type_body_length 71 | 72 | private final class BundleToken {} 73 | {% else %} 74 | // No fonts found 75 | {% endif %} 76 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/fonts/swift3.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if families %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | #if os(OSX) 6 | import AppKit.NSFont 7 | {{accessModifier}} typealias Font = NSFont 8 | #elseif os(iOS) || os(tvOS) || os(watchOS) 9 | import UIKit.UIFont 10 | {{accessModifier}} typealias Font = UIFont 11 | #endif 12 | 13 | // swiftlint:disable superfluous_disable_command 14 | // swiftlint:disable file_length 15 | 16 | {{accessModifier}} struct FontConvertible { 17 | {{accessModifier}} let name: String 18 | {{accessModifier}} let family: String 19 | {{accessModifier}} let path: String 20 | 21 | {{accessModifier}} func font(size: CGFloat) -> Font! { 22 | return Font(font: self, size: size) 23 | } 24 | 25 | {{accessModifier}} func register() { 26 | guard let url = url else { return } 27 | var errorRef: Unmanaged? 28 | CTFontManagerRegisterFontsForURL(url as CFURL, .process, &errorRef) 29 | } 30 | 31 | fileprivate var url: URL? { 32 | let bundle = Bundle(for: BundleToken.self) 33 | return bundle.url(forResource: path, withExtension: nil) 34 | } 35 | } 36 | 37 | {{accessModifier}} extension Font { 38 | convenience init!(font: FontConvertible, size: CGFloat) { 39 | #if os(iOS) || os(tvOS) || os(watchOS) 40 | if !UIFont.fontNames(forFamilyName: font.family).contains(font.name) { 41 | font.register() 42 | } 43 | #elseif os(OSX) 44 | if let url = font.url, CTFontManagerGetScopeForURL(url as CFURL) == .none { 45 | font.register() 46 | } 47 | #endif 48 | 49 | self.init(name: font.name, size: size) 50 | } 51 | } 52 | 53 | // swiftlint:disable identifier_name line_length type_body_length 54 | {% macro transformPath path %}{% filter removeNewlines %} 55 | {% if param.preservePath %} 56 | {{path}} 57 | {% else %} 58 | {{path|basename}} 59 | {% endif %} 60 | {% endfilter %}{% endmacro %} 61 | {{accessModifier}} enum {{param.enumName|default:"FontFamily"}} { 62 | {% for family in families %} 63 | {{accessModifier}} enum {{family.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 64 | {% for font in family.fonts %} 65 | {{accessModifier}} static let {{font.style|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = FontConvertible(name: "{{font.name}}", family: "{{family.name}}", path: "{% call transformPath font.path %}") 66 | {% endfor %} 67 | } 68 | {% endfor %} 69 | } 70 | // swiftlint:enable identifier_name line_length type_body_length 71 | 72 | private final class BundleToken {} 73 | {% else %} 74 | // No fonts found 75 | {% endif %} 76 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/fonts/swift4.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if families %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | #if os(OSX) 6 | import AppKit.NSFont 7 | {{accessModifier}} typealias Font = NSFont 8 | #elseif os(iOS) || os(tvOS) || os(watchOS) 9 | import UIKit.UIFont 10 | {{accessModifier}} typealias Font = UIFont 11 | #endif 12 | 13 | // swiftlint:disable superfluous_disable_command 14 | // swiftlint:disable file_length 15 | 16 | {{accessModifier}} struct FontConvertible { 17 | {{accessModifier}} let name: String 18 | {{accessModifier}} let family: String 19 | {{accessModifier}} let path: String 20 | 21 | {{accessModifier}} func font(size: CGFloat) -> Font! { 22 | return Font(font: self, size: size) 23 | } 24 | 25 | {{accessModifier}} func register() { 26 | guard let url = url else { return } 27 | var errorRef: Unmanaged? 28 | CTFontManagerRegisterFontsForURL(url as CFURL, .process, &errorRef) 29 | } 30 | 31 | fileprivate var url: URL? { 32 | let bundle = Bundle(for: BundleToken.self) 33 | return bundle.url(forResource: path, withExtension: nil) 34 | } 35 | } 36 | 37 | {{accessModifier}} extension Font { 38 | convenience init!(font: FontConvertible, size: CGFloat) { 39 | #if os(iOS) || os(tvOS) || os(watchOS) 40 | if !UIFont.fontNames(forFamilyName: font.family).contains(font.name) { 41 | font.register() 42 | } 43 | #elseif os(OSX) 44 | if let url = font.url, CTFontManagerGetScopeForURL(url as CFURL) == .none { 45 | font.register() 46 | } 47 | #endif 48 | 49 | self.init(name: font.name, size: size) 50 | } 51 | } 52 | 53 | // swiftlint:disable identifier_name line_length type_body_length 54 | {% macro transformPath path %}{% filter removeNewlines %} 55 | {% if param.preservePath %} 56 | {{path}} 57 | {% else %} 58 | {{path|basename}} 59 | {% endif %} 60 | {% endfilter %}{% endmacro %} 61 | {{accessModifier}} enum {{param.enumName|default:"FontFamily"}} { 62 | {% for family in families %} 63 | {{accessModifier}} enum {{family.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 64 | {% for font in family.fonts %} 65 | {{accessModifier}} static let {{font.style|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = FontConvertible(name: "{{font.name}}", family: "{{family.name}}", path: "{% call transformPath font.path %}") 66 | {% endfor %} 67 | } 68 | {% endfor %} 69 | } 70 | // swiftlint:enable identifier_name line_length type_body_length 71 | 72 | private final class BundleToken {} 73 | {% else %} 74 | // No fonts found 75 | {% endif %} 76 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/flat-swift2.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.key|swiftIdentifier:"pretty"|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.key|swiftIdentifier:"pretty"|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | {{sp}} {% call recursiveBlock table child sp %} 34 | {{sp}} {% endfor %} 35 | {% endmacro %} 36 | 37 | // swiftlint:disable identifier_name line_length type_body_length 38 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 39 | {{accessModifier}} enum {{enumName}} { 40 | {% if tables.count > 1 %} 41 | {% for table in tables %} 42 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 43 | {% call recursiveBlock table.name table.levels " " %} 44 | } 45 | {% endfor %} 46 | {% else %} 47 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 48 | {% endif %} 49 | } 50 | // swiftlint:enable identifier_name line_length type_body_length 51 | 52 | extension {{enumName}} { 53 | private static func tr(table: String, _ key: String, _ args: CVarArgType...) -> String { 54 | let format = NSLocalizedString(key, tableName: table, bundle: NSBundle(forClass: BundleToken.self), comment: "") 55 | return String(format: format, locale: NSLocale.currentLocale(), arguments: args) 56 | } 57 | } 58 | 59 | private final class BundleToken {} 60 | {% else %} 61 | // No string found 62 | {% endif %} 63 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/flat-swift3.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | _ p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.key|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.key|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | {{sp}} {% call recursiveBlock table child sp %} 34 | {{sp}} {% endfor %} 35 | {% endmacro %} 36 | 37 | // swiftlint:disable identifier_name line_length type_body_length 38 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 39 | {{accessModifier}} enum {{enumName}} { 40 | {% if tables.count > 1 %} 41 | {% for table in tables %} 42 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 43 | {% call recursiveBlock table.name table.levels " " %} 44 | } 45 | {% endfor %} 46 | {% else %} 47 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 48 | {% endif %} 49 | } 50 | // swiftlint:enable identifier_name line_length type_body_length 51 | 52 | extension {{enumName}} { 53 | fileprivate static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String { 54 | let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "") 55 | return String(format: format, locale: Locale.current, arguments: args) 56 | } 57 | } 58 | 59 | private final class BundleToken {} 60 | {% else %} 61 | // No string found 62 | {% endif %} 63 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/flat-swift4.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | _ p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.key|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.key|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | {{sp}} {% call recursiveBlock table child sp %} 34 | {{sp}} {% endfor %} 35 | {% endmacro %} 36 | 37 | // swiftlint:disable identifier_name line_length type_body_length 38 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 39 | {{accessModifier}} enum {{enumName}} { 40 | {% if tables.count > 1 %} 41 | {% for table in tables %} 42 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 43 | {% call recursiveBlock table.name table.levels " " %} 44 | } 45 | {% endfor %} 46 | {% else %} 47 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 48 | {% endif %} 49 | } 50 | // swiftlint:enable identifier_name line_length type_body_length 51 | 52 | extension {{enumName}} { 53 | private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String { 54 | let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "") 55 | return String(format: format, locale: Locale.current, arguments: args) 56 | } 57 | } 58 | 59 | private final class BundleToken {} 60 | {% else %} 61 | // No string found 62 | {% endif %} 63 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/structured-swift2.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.name|swiftIdentifier:"pretty"|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | 34 | {{sp}} {{accessModifier}} enum {{child.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 35 | {{sp}} {% set sp2 %}{{sp}} {% endset %} 36 | {{sp}} {% call recursiveBlock table child sp2 %} 37 | {{sp}} } 38 | {{sp}} {% endfor %} 39 | {% endmacro %} 40 | 41 | // swiftlint:disable explicit_type_interface identifier_name line_length nesting type_body_length type_name 42 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 43 | {{accessModifier}} enum {{enumName}} { 44 | {% if tables.count > 1 %} 45 | {% for table in tables %} 46 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call recursiveBlock table.name table.levels " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable explicit_type_interface identifier_name line_length nesting type_body_length type_name 55 | 56 | extension {{enumName}} { 57 | private static func tr(table: String, _ key: String, _ args: CVarArgType...) -> String { 58 | let format = NSLocalizedString(key, tableName: table, bundle: NSBundle(forClass: BundleToken.self), comment: "") 59 | return String(format: format, locale: NSLocale.currentLocale(), arguments: args) 60 | } 61 | } 62 | 63 | private final class BundleToken {} 64 | {% else %} 65 | // No string found 66 | {% endif %} 67 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/structured-swift3.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | _ p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | 34 | {{sp}} {{accessModifier}} enum {{child.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 35 | {{sp}} {% set sp2 %}{{sp}} {% endset %} 36 | {{sp}} {% call recursiveBlock table child sp2 %} 37 | {{sp}} } 38 | {{sp}} {% endfor %} 39 | {% endmacro %} 40 | 41 | // swiftlint:disable explicit_type_interface identifier_name line_length nesting type_body_length type_name 42 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 43 | {{accessModifier}} enum {{enumName}} { 44 | {% if tables.count > 1 %} 45 | {% for table in tables %} 46 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call recursiveBlock table.name table.levels " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable explicit_type_interface identifier_name line_length nesting type_body_length type_name 55 | 56 | extension {{enumName}} { 57 | fileprivate static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String { 58 | let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "") 59 | return String(format: format, locale: Locale.current, arguments: args) 60 | } 61 | } 62 | 63 | private final class BundleToken {} 64 | {% else %} 65 | // No string found 66 | {% endif %} 67 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/SwiftGen/templates/strings/structured-swift4.stencil: -------------------------------------------------------------------------------- 1 | // Generated using SwiftGen, by O.Halligon — https://github.com/SwiftGen/SwiftGen 2 | 3 | {% if tables.count > 0 %} 4 | {% set accessModifier %}{% if param.publicAccess %}public{% else %}internal{% endif %}{% endset %} 5 | import Foundation 6 | 7 | // swiftlint:disable superfluous_disable_command 8 | // swiftlint:disable file_length 9 | {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} 10 | {% for type in types %} 11 | _ p{{forloop.counter}}: {{type}}{% if not forloop.last %}, {% endif %} 12 | {% endfor %} 13 | {% endfilter %}{% endmacro %} 14 | {% macro argumentsBlock types %}{% filter removeNewlines:"leading" %} 15 | {% for type in types %} 16 | p{{forloop.counter}}{% if not forloop.last %}, {% endif %} 17 | {% endfor %} 18 | {% endfilter %}{% endmacro %} 19 | {% macro recursiveBlock table item sp %} 20 | {{sp}} {% for string in item.strings %} 21 | {{sp}} {% if not param.noComments %} 22 | {{sp}} /// {{string.translation}} 23 | {{sp}} {% endif %} 24 | {{sp}} {% if string.types %} 25 | {{sp}} {{accessModifier}} static func {{string.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}}({% call parametersBlock string.types %}) -> String { 26 | {{sp}} return {{enumName}}.tr("{{table}}", "{{string.key}}", {% call argumentsBlock string.types %}) 27 | {{sp}} } 28 | {{sp}} {% else %} 29 | {{sp}} {{accessModifier}} static let {{string.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{enumName}}.tr("{{table}}", "{{string.key}}") 30 | {{sp}} {% endif %} 31 | {{sp}} {% endfor %} 32 | {{sp}} {% for child in item.children %} 33 | 34 | {{sp}} {{accessModifier}} enum {{child.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 35 | {{sp}} {% set sp2 %}{{sp}} {% endset %} 36 | {{sp}} {% call recursiveBlock table child sp2 %} 37 | {{sp}} } 38 | {{sp}} {% endfor %} 39 | {% endmacro %} 40 | 41 | // swiftlint:disable explicit_type_interface identifier_name line_length nesting type_body_length type_name 42 | {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} 43 | {{accessModifier}} enum {{enumName}} { 44 | {% if tables.count > 1 %} 45 | {% for table in tables %} 46 | {{accessModifier}} enum {{table.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 47 | {% call recursiveBlock table.name table.levels " " %} 48 | } 49 | {% endfor %} 50 | {% else %} 51 | {% call recursiveBlock tables.first.name tables.first.levels "" %} 52 | {% endif %} 53 | } 54 | // swiftlint:enable explicit_type_interface identifier_name line_length nesting type_body_length type_name 55 | 56 | extension {{enumName}} { 57 | private static func tr(_ table: String, _ key: String, _ args: CVarArg...) -> String { 58 | let format = NSLocalizedString(key, tableName: table, bundle: Bundle(for: BundleToken.self), comment: "") 59 | return String(format: format, locale: Locale.current, arguments: args) 60 | } 61 | } 62 | 63 | private final class BundleToken {} 64 | {% else %} 65 | // No string found 66 | {% endif %} 67 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | ${EXECUTABLE_NAME} 9 | CFBundleIdentifier 10 | ${PRODUCT_BUNDLE_IDENTIFIER} 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | ${PRODUCT_NAME} 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | ${CURRENT_PROJECT_VERSION} 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo-acknowledgements.markdown: -------------------------------------------------------------------------------- 1 | # Acknowledgements 2 | This application makes use of the following third party libraries: 3 | 4 | ## SwiftGen 5 | 6 | MIT License 7 | 8 | Copyright (c) 2017 SwiftGen 9 | 10 | Permission is hereby granted, free of charge, to any person obtaining a copy 11 | of this software and associated documentation files (the "Software"), to deal 12 | in the Software without restriction, including without limitation the rights 13 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 14 | copies of the Software, and to permit persons to whom the Software is 15 | furnished to do so, subject to the following conditions: 16 | 17 | The above copyright notice and this permission notice shall be included in all 18 | copies or substantial portions of the Software. 19 | 20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 21 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 22 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 23 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 24 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 25 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 26 | SOFTWARE. 27 | 28 | Generated by CocoaPods - https://cocoapods.org 29 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo-acknowledgements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreferenceSpecifiers 6 | 7 | 8 | FooterText 9 | This application makes use of the following third party libraries: 10 | Title 11 | Acknowledgements 12 | Type 13 | PSGroupSpecifier 14 | 15 | 16 | FooterText 17 | MIT License 18 | 19 | Copyright (c) 2017 SwiftGen 20 | 21 | Permission is hereby granted, free of charge, to any person obtaining a copy 22 | of this software and associated documentation files (the "Software"), to deal 23 | in the Software without restriction, including without limitation the rights 24 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 25 | copies of the Software, and to permit persons to whom the Software is 26 | furnished to do so, subject to the following conditions: 27 | 28 | The above copyright notice and this permission notice shall be included in all 29 | copies or substantial portions of the Software. 30 | 31 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 32 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 33 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 34 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 35 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 36 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 37 | SOFTWARE. 38 | 39 | License 40 | MIT 41 | Title 42 | SwiftGen 43 | Type 44 | PSGroupSpecifier 45 | 46 | 47 | FooterText 48 | Generated by CocoaPods - https://cocoapods.org 49 | Title 50 | 51 | Type 52 | PSGroupSpecifier 53 | 54 | 55 | StringsTable 56 | Acknowledgements 57 | Title 58 | Acknowledgements 59 | 60 | 61 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo-dummy.m: -------------------------------------------------------------------------------- 1 | #import 2 | @interface PodsDummy_Pods_ResourceManageDemo : NSObject 3 | @end 4 | @implementation PodsDummy_Pods_ResourceManageDemo 5 | @end 6 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo-umbrella.h: -------------------------------------------------------------------------------- 1 | #ifdef __OBJC__ 2 | #import 3 | #else 4 | #ifndef FOUNDATION_EXPORT 5 | #if defined(__cplusplus) 6 | #define FOUNDATION_EXPORT extern "C" 7 | #else 8 | #define FOUNDATION_EXPORT extern 9 | #endif 10 | #endif 11 | #endif 12 | 13 | 14 | FOUNDATION_EXPORT double Pods_ResourceManageDemoVersionNumber; 15 | FOUNDATION_EXPORT const unsigned char Pods_ResourceManageDemoVersionString[]; 16 | 17 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo.debug.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/SwiftGen" 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/SwiftGen" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo.modulemap: -------------------------------------------------------------------------------- 1 | framework module Pods_ResourceManageDemo { 2 | umbrella header "Pods-ResourceManageDemo-umbrella.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/Pods/Target Support Files/Pods-ResourceManageDemo/Pods-ResourceManageDemo.release.xcconfig: -------------------------------------------------------------------------------- 1 | GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 2 | HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/SwiftGen" 3 | LD_RUNPATH_SEARCH_PATHS = $(inherited) '@executable_path/Frameworks' '@loader_path/Frameworks' 4 | OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/SwiftGen" 5 | PODS_BUILD_DIR = ${BUILD_DIR} 6 | PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) 7 | PODS_PODFILE_DIR_PATH = ${SRCROOT}/. 8 | PODS_ROOT = ${SRCROOT}/Pods 9 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/README.md: -------------------------------------------------------------------------------- 1 | # ResourceManageDemo 2 | 3 | 4 | - **第一步** 配置 AutoAsset,安装教程可以在 [这里](https://github.com/Damonvvong/AutoAsset) 找到 5 | - **Xcode** 的 **Build Phases** 新加一个脚本 6 | 7 | - **第二步** 编写 Podfile 文件,把 Xcode Build Phases 加入 8 | 9 | ```ruby 10 | 11 | source 'https://github.com/CocoaPods/Specs.git' 12 | use_frameworks! 13 | inhibit_all_warnings! 14 | platform :ios, '9.0' 15 | 16 | target 'ResourceManageDemo' do 17 | pod 'SwiftGen' 18 | 19 | script_phase :name => '同步图片', :script => '$PROJECT_DIR/script/AutoAsset $PROJECT_DIR/synchronizeImageFolder $PROJECT_DIR/synchronizeImageFolder_backup $PROJECT_DIR/ResourceManageDemo/Assets.xcassets', :execution_position => :before_compile 20 | 21 | script_phase :name => '生成SwiftGen文件', :script => '$PODS_ROOT/SwiftGen/bin/swiftgen xcassets $PROJECT_DIR/ResourceManageDemo/Assets.xcassets --templatePath $PROJECT_DIR/script/SwiftGenTemplate.stencil --output $PROJECT_DIR/ResourceManageDemo/Assets.swift', :execution_position => :before_compile 22 | end 23 | 24 | ``` 25 | 26 | - **第三步** 编译,并编写代码。 27 | 28 | - 第一次编译的时候,只会生成 Assets.Swift 文件,需要拖到项目中 29 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ResourceManageDemo 4 | // 5 | // Created by damonwong on 2018/4/12. 6 | // Copyright © 2018年 damonwong. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | } 39 | 40 | func applicationWillTerminate(_ application: UIApplication) { 41 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 42 | } 43 | 44 | 45 | } 46 | 47 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.swift: -------------------------------------------------------------------------------- 1 | // SwiftGen xcassets template for Asprin 2 | import UIKit 3 | 4 | enum Asset { 5 | static let damonwong = ImageAsset(name: "Damonwong") 6 | } 7 | 8 | struct ImageAsset { 9 | fileprivate var name: String 10 | var image: UIImage { 11 | let bundle = Bundle(for: BundleToken.self) 12 | let image = UIImage(named: name, in: bundle, compatibleWith: nil) 13 | guard let result = image else { 14 | fatalError("Unable to load image named \(name).") 15 | } 16 | return result 17 | } 18 | } 19 | 20 | final class BundleToken { } 21 | 22 | 23 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "20x20", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "20x20", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "29x29", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "29x29", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "40x40", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "40x40", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "iphone", 35 | "size" : "60x60", 36 | "scale" : "2x" 37 | }, 38 | { 39 | "idiom" : "iphone", 40 | "size" : "60x60", 41 | "scale" : "3x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "20x20", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "20x20", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "29x29", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "29x29", 61 | "scale" : "2x" 62 | }, 63 | { 64 | "idiom" : "ipad", 65 | "size" : "40x40", 66 | "scale" : "1x" 67 | }, 68 | { 69 | "idiom" : "ipad", 70 | "size" : "40x40", 71 | "scale" : "2x" 72 | }, 73 | { 74 | "idiom" : "ipad", 75 | "size" : "76x76", 76 | "scale" : "1x" 77 | }, 78 | { 79 | "idiom" : "ipad", 80 | "size" : "76x76", 81 | "scale" : "2x" 82 | }, 83 | { 84 | "idiom" : "ipad", 85 | "size" : "83.5x83.5", 86 | "scale" : "2x" 87 | }, 88 | { 89 | "idiom" : "ios-marketing", 90 | "size" : "1024x1024", 91 | "scale" : "1x" 92 | } 93 | ], 94 | "info" : { 95 | "version" : 1, 96 | "author" : "xcode" 97 | } 98 | } -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "version" : 1, 4 | "author" : "xcode" 5 | } 6 | } -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Damonwong.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "info" : { 3 | "author" : "xcode", 4 | "version" : "1" 5 | }, 6 | "images" : [ 7 | { 8 | "idiom" : "universal", 9 | "scale" : "1x" 10 | }, 11 | { 12 | "idiom" : "universal", 13 | "scale" : "2x", 14 | "filename" : "Damonwong@2x.png" 15 | }, 16 | { 17 | "idiom" : "universal", 18 | "scale" : "3x", 19 | "filename" : "Damonwong@3x.png" 20 | } 21 | ] 22 | } -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Damonwong.imageset/Damonwong@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Damonwong.imageset/Damonwong@2x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Damonwong.imageset/Damonwong@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/ResourceManageDemo/Assets.xcassets/Damonwong.imageset/Damonwong@3x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | $(DEVELOPMENT_LANGUAGE) 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/ResourceManageDemo/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // ResourceManageDemo 4 | // 5 | // Created by damonwong on 2018/4/12. 6 | // Copyright © 2018年 damonwong. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | let imageView = UIImageView(image: Asset.damonwong.image) 16 | imageView.center = view.center 17 | view.addSubview(imageView) 18 | } 19 | 20 | override func didReceiveMemoryWarning() { 21 | super.didReceiveMemoryWarning() 22 | // Dispose of any resources that can be recreated. 23 | } 24 | 25 | 26 | } 27 | 28 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/script/AutoAsset: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/script/AutoAsset -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/script/SwiftGenTemplate.stencil: -------------------------------------------------------------------------------- 1 | // SwiftGen xcassets template for Asprin 2 | {% set enumName %}{{param.enumName|default:"Asset"}}{% endset %} 3 | {% set imageType %}{{param.imageTypeName|default:"ImageAsset"}}{% endset %} 4 | {% if catalogs %} 5 | import UIKit 6 | 7 | {% macro enumBlock assets sp %} 8 | {{sp}} {% call casesBlock assets sp %} 9 | {{sp}} {% if not param.noAllValues %} 10 | {{sp}} {% endif %} 11 | {% endmacro %} 12 | {% macro casesBlock assets sp %} 13 | {{sp}} {% for asset in assets %} 14 | {{sp}} {% if asset.type == "color" %} 15 | {{sp}} static let {{asset.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{colorType}}(name: "{{asset.value}}") 16 | {{sp}} {% elif asset.type == "image" %} 17 | {{sp}} static let {{asset.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}} = {{imageType}}(name: "{{asset.value}}") 18 | {{sp}} {% elif asset.items %} 19 | {{sp}} enum {{asset.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 20 | {{sp}} {% set sp2 %}{{sp}} {% endset %} 21 | {{sp}} {% call casesBlock asset.items sp2 %} 22 | {{sp}} } 23 | {{sp}} {% endif %} 24 | {{sp}} {% endfor %} 25 | {% endmacro %} 26 | {% macro allValuesBlock assets filter prefix sp %} 27 | {{sp}} {% for asset in assets %} 28 | {{sp}} {% if asset.type == filter %} 29 | {{sp}} {{prefix}}{{asset.name|swiftIdentifier:"pretty"|lowerFirstWord|escapeReservedKeywords}}, 30 | {{sp}} {% elif asset.items %} 31 | {{sp}} {% set prefix2 %}{{prefix}}{{asset.name|swiftIdentifier:"pretty"|escapeReservedKeywords}}.{% endset %} 32 | {{sp}} {% call allValuesBlock asset.items filter prefix2 sp %} 33 | {{sp}} {% endif %} 34 | {{sp}} {% endfor %} 35 | {% endmacro %} 36 | enum {{enumName}} { 37 | {% if catalogs.count > 1 %} 38 | {% for catalog in catalogs %} 39 | enum {{catalog.name|swiftIdentifier:"pretty"|escapeReservedKeywords}} { 40 | {% call enumBlock catalog.assets " " %} 41 | } 42 | {% endfor %} 43 | {% else %} 44 | {% call enumBlock catalogs.first.assets "" %} 45 | {% endif %} 46 | } 47 | 48 | struct {{imageType}} { 49 | fileprivate var name: String 50 | var image: UIImage { 51 | let bundle = Bundle(for: BundleToken.self) 52 | let image = UIImage(named: name, in: bundle, compatibleWith: nil) 53 | guard let result = image else { 54 | fatalError("Unable to load image named \(name).") 55 | } 56 | return result 57 | } 58 | } 59 | 60 | final class BundleToken { } 61 | {% else %} 62 | // No assets found 63 | {% endif %} 64 | 65 | 66 | -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/synchronizeImageFolder/Damonwong@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/synchronizeImageFolder/Damonwong@2x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/synchronizeImageFolder/Damonwong@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/synchronizeImageFolder/Damonwong@3x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/synchronizeImageFolder_backup/Damonwong@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/synchronizeImageFolder_backup/Damonwong@2x.png -------------------------------------------------------------------------------- /Demo/ResourceManageDemo/synchronizeImageFolder_backup/Damonwong@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/Demo/ResourceManageDemo/synchronizeImageFolder_backup/Damonwong@3x.png -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/AppDelegate.h: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.h 3 | // VideoRecoderDemo 4 | // 5 | // Created by Damon on 16/8/29. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface AppDelegate : UIResponder 12 | 13 | @property (strong, nonatomic) UIWindow *window; 14 | 15 | 16 | @end 17 | 18 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/AppDelegate.m: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.m 3 | // VideoRecoderDemo 4 | // 5 | // Created by Damon on 16/8/29. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import "AppDelegate.h" 10 | 11 | @interface AppDelegate () 12 | 13 | @end 14 | 15 | @implementation AppDelegate 16 | 17 | 18 | - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { 19 | // Override point for customization after application launch. 20 | return YES; 21 | } 22 | 23 | - (void)applicationWillResignActive:(UIApplication *)application { 24 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 25 | // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. 26 | } 27 | 28 | - (void)applicationDidEnterBackground:(UIApplication *)application { 29 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 30 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 31 | } 32 | 33 | - (void)applicationWillEnterForeground:(UIApplication *)application { 34 | // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. 35 | } 36 | 37 | - (void)applicationDidBecomeActive:(UIApplication *)application { 38 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 39 | } 40 | 41 | - (void)applicationWillTerminate:(UIApplication *)application { 42 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 43 | } 44 | 45 | @end 46 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | } 33 | ], 34 | "info" : { 35 | "version" : 1, 36 | "author" : "xcode" 37 | } 38 | } -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | LSRequiresIPhoneOS 24 | 25 | UILaunchStoryboardName 26 | LaunchScreen 27 | UIMainStoryboardFile 28 | Main 29 | UIRequiredDeviceCapabilities 30 | 31 | armv7 32 | 33 | UISupportedInterfaceOrientations 34 | 35 | UIInterfaceOrientationPortrait 36 | UIInterfaceOrientationLandscapeLeft 37 | UIInterfaceOrientationLandscapeRight 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/ViewController.h: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.h 3 | // VideoRecoderDemo 4 | // 5 | // Created by Damon on 16/8/29. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | @interface ViewController : UIViewController 12 | 13 | 14 | @end 15 | 16 | -------------------------------------------------------------------------------- /Demo/VideoRecoderDemo/VideoRecoderDemo/main.m: -------------------------------------------------------------------------------- 1 | // 2 | // main.m 3 | // VideoRecoderDemo 4 | // 5 | // Created by Damon on 16/8/29. 6 | // Copyright © 2016年 damonvvong. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "AppDelegate.h" 11 | 12 | int main(int argc, char * argv[]) { 13 | @autoreleasepool { 14 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 Coderone 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #### iOS 开发笔记 2 | 3 |
4 | 项目相关 5 | 6 | - [iOS 开发中的资源管理问题](https://github.com/Damonvvong/DevNotes/blob/master/Notes/resource_manage.md) 7 | - 如何更高效的同步素材图? 8 | - 如何更安全的读取素材图? 9 | - 如何解决组件之间的重名问题? 10 | 11 |
12 | 13 |
14 | 优化相关 15 | 16 | - [iOS App 瘦身 - 以 Swift App Yep 为例](https://github.com/Damonvvong/DevNotes/blob/master/Notes/optimize_app_size_1.md) 17 | - 使用 **.xcassets** 有什么好处? 放置在 **.xcassets** 的 **PDF** 在编译时会如何处理? 18 | - 什么是 App Slicing? 19 | - 如果我有一个 10 x 10 的控件和一个 50 x 50 的控件,美工需要制作几张 PDF? 20 | - 启动图的正确打开方式? 21 | - 使用 Swift 混编的项目会对包体积有什么影响?到底如何抉择是否使用Swift。 22 | 23 | - [优化 App 启动](https://github.com/Damonvvong/DevNotes/blob/master/Notes/optimizing_app_launch.md) 24 | 25 | - [Diff 算法在 iOS 中的应用(一)](https://github.com/Damonvvong/DevNotes/blob/master/Notes/diff_1.md) 26 | 27 |
28 | 29 |
30 | 原理相关 31 | 32 | - [iOS 开发中的『库』(一)](https://github.com/Damonvvong/DevNotes/blob/master/Notes/framework.md) 33 | - .framework 是什么?怎么制作? 34 | - 谈一谈自己对动态库和静态库的理解。 35 | - 在项目中如何使用动态framework的 APP ?使用了动态framework 的 APP 能上架 Appstore 么? 36 | - 可以通过 framework 的方式实现 app 的热修复么? 37 | 38 | - [iOS 开发中的『库』(二)](https://github.com/Damonvvong/DevNotes/blob/master/Notes/framework2.md) 39 | - 再谈一谈动态库和静态库。~~你真的知道 XXXX 和 XXX 系列。~~ 40 | - 为什么使用动态库的方式来动态更新只能用在 **in house** 和**develop** 模式却不能在使用到 **AppStore** 上呢? 41 | - 动态库到底会添加到内存中几次? 42 | 43 |
44 | 45 |
46 | 工具相关 47 | 48 | - [CocoaPods 1.0 + 适配](https://github.com/Damonvvong/DWCategory) 49 | - CocoaPods 1.0 安装及适配 50 | - 利用 CocoaPods 发布自己的三方库 51 | - CocoaPods 1.0 私有 Pods 52 | 53 |
54 | 55 |
56 | 功能模仿 57 | 58 | - [微信小视屏模仿 - AVFoundation 入门](https://github.com/Damonvvong/DevNotes/blob/master/Notes/videorecoder.md) 59 | - **技术路线**: iOS 开发中的视频录制主要技术路线。 60 | - AVFoundation 的初步使用:**先录制再压缩**。[Demo1](https://github.com/Damonvvong/iOSDevNotes/tree/master/Demo/VideoRecoderDemo) 61 | - 优化方案:按帧压缩视频、**边录制边压缩**。[Demo2](https://github.com/Damonvvong/iOSDevNotes/tree/master/Demo/DWShortVideoRecoder) 62 | - Tips:如何从导出真机沙盒里面的文件、iOS 默认可选预设 63 |
64 | 65 | 66 |
67 | Swift 相关 68 | 69 | - [Swift 3 迁移工作总结](https://github.com/Damonvvong/DevNotes/blob/master/Notes/SwiftTips_1.md) 70 | - 一天时间将4万行 Swift 2 To Swift 3 的工作总结。 71 | - 迁移中的问题 72 | - [Swift 性能相关](https://github.com/Damonvvong/DevNotes/blob/master/Notes/swift_performance.md) 73 | - 为什么说 **Swift** 相比较于 **Objective-C** 会更加**快** ? 74 | - 为什么在编译 **Swift** 的时候这么**慢** ? 75 | - 如何更**优雅**的去写 Swift ? 76 | - [Swift 编码规范](https://github.com/Damonvvong/DevNotes/blob/master/Notes/swift_style_guide.md) 77 | - 参照 [Raywenderlich Swift Style Guide](https://github.com/raywenderlich/swift-style-guide)、[Linkedin Swift Style Guide](https://github.com/linkedin/swift-style-guide)、[Github Swift Style Guide](https://github.com/github/swift-style-guide)、[Eure Swift Style Guide](https://github.com/eure/swift-style-guide) 总结的规范 78 |
79 | 80 | 81 | -------------------------------------------------------------------------------- /images/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/.DS_Store -------------------------------------------------------------------------------- /images/AppBetter_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_1.png -------------------------------------------------------------------------------- /images/AppBetter_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_10.png -------------------------------------------------------------------------------- /images/AppBetter_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_2.png -------------------------------------------------------------------------------- /images/AppBetter_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_3.png -------------------------------------------------------------------------------- /images/AppBetter_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_4.png -------------------------------------------------------------------------------- /images/AppBetter_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_5.png -------------------------------------------------------------------------------- /images/AppBetter_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_6.png -------------------------------------------------------------------------------- /images/AppBetter_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_7.png -------------------------------------------------------------------------------- /images/AppBetter_8.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_8.jpeg -------------------------------------------------------------------------------- /images/AppBetter_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/AppBetter_9.png -------------------------------------------------------------------------------- /images/framework-dylib.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework-dylib.png -------------------------------------------------------------------------------- /images/framework-embeded.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework-embeded.png -------------------------------------------------------------------------------- /images/framework-mach-o.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework-mach-o.png -------------------------------------------------------------------------------- /images/framework-problem.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework-problem.jpg -------------------------------------------------------------------------------- /images/framework-static.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework-static.png -------------------------------------------------------------------------------- /images/framework2-dtb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework2-dtb.jpg -------------------------------------------------------------------------------- /images/framework2-jtb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework2-jtb.jpg -------------------------------------------------------------------------------- /images/framework2-memory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/framework2-memory.png -------------------------------------------------------------------------------- /images/performance_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_1.png -------------------------------------------------------------------------------- /images/performance_10.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_10.png -------------------------------------------------------------------------------- /images/performance_11.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_11.png -------------------------------------------------------------------------------- /images/performance_12.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_12.png -------------------------------------------------------------------------------- /images/performance_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_2.png -------------------------------------------------------------------------------- /images/performance_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_3.png -------------------------------------------------------------------------------- /images/performance_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_4.png -------------------------------------------------------------------------------- /images/performance_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_5.png -------------------------------------------------------------------------------- /images/performance_6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_6.png -------------------------------------------------------------------------------- /images/performance_7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_7.png -------------------------------------------------------------------------------- /images/performance_8.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_8.png -------------------------------------------------------------------------------- /images/performance_9.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/performance_9.png -------------------------------------------------------------------------------- /images/resource_manage1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage1.jpg -------------------------------------------------------------------------------- /images/resource_manage2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage2.jpg -------------------------------------------------------------------------------- /images/resource_manage3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage3.jpg -------------------------------------------------------------------------------- /images/resource_manage4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage4.jpg -------------------------------------------------------------------------------- /images/resource_manage5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage5.jpg -------------------------------------------------------------------------------- /images/resource_manage6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage6.png -------------------------------------------------------------------------------- /images/resource_manage7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/resource_manage7.jpg -------------------------------------------------------------------------------- /images/videorecoder_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/videorecoder_1.png -------------------------------------------------------------------------------- /images/videorecoder_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/videorecoder_2.png -------------------------------------------------------------------------------- /images/videorecoder_3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/videorecoder_3.jpg -------------------------------------------------------------------------------- /images/videorecoder_4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Damonvvong/DevNotes/9c15e28f6c8a771a6908362baa6c05f074e936c3/images/videorecoder_4.jpg --------------------------------------------------------------------------------