Sha256: 09bd5b7a9f17a88be14db09deacf7c11865e1d7c0df88aa971ae10afc54f83dd
Contents?: true
Size: 1.92 KB
Versions: 1
Compression:
Stored size: 1.92 KB
Contents
// // Auto Generated By CocoaDepot // // _____ _____ _ // / ____| | __ \ | | // | | ___ ___ ___ __ _| | | | ___ _ __ ___ | |_ // | | / _ \ / __/ _ \ / _` | | | |/ _ | '_ \ / _ \| __| // | |___| (_) | (_| (_) | (_| | |__| | __| |_) | (_) | |_ // \_____\___/ \___\___/ \__,_|_____/ \___| .__/ \___/ \__| // | | // |_| // The universal cocoa devops toolchain. // This file is generated using the semantic resources. If you want // check more info please see: // * RFC-2021.07.01 iOS 资源语义化方案 http://shortlink.test.gifshow.com/A8nIepnk // * 资源语义化 Objective-C 代码生成 http://shortlink.test.gifshow.com/A8nIepnk // #import "<%= oc_class_name %>.h" @implementation <%= oc_class_name %> + (KCPack *)packFor<%= oc_class_name %> { static KCPack* pack = nil; static dispatch_once_t once; dispatch_once(&once, ^{ NSURL* packURL = [[NSBundle mainBundle] URLForResource:@"<%= bundle_name %>" withExtension:@"bundle"]; if (nil == packURL) { packURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"<%= bundle_name %>" withExtension:@"bundle"]; } if (nil == packURL) { @throw [NSException exceptionWithName:@"Not find the pack" reason:@"Not find the pack for component named <%= oc_class_name %>." userInfo:nil]; } pack = [[KCPack alloc] initWithURL:packURL]; }); return pack; } + (instancetype)R { static <%= oc_class_name %>* resources = nil; static dispatch_once_t once; dispatch_once(&once, ^{ resources = [<%= oc_class_name %> new]; [resources appendPack:[<%= oc_class_name %> packFor<%= oc_class_name %>]]; }); return resources; } @end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
KCommercialPipeline-0.2.5.1 | lib/KCommercialPipeline/core/resource/objective-c/templates/{{oc_class_name}}.m |