This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Shaker.swift | |
// | |
// | |
// Created by Rico Becker on 30.03.24. | |
// | |
import PlaydateKit | |
struct Shaker { | |
let gravity: Float = 9.80665 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
// # Structure | |
// - SwiftPackage | |
// - Sources | |
// - Tests | |
// - Resources | |
// - test.txt | |
// - SwiftPackageTests | |
// - SwiftPackageTests.swift |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |spec| | |
spec.name = "R.swift.Library" | |
spec.version = "5.0.0.alpha.2" | |
spec.license = "MIT" | |
spec.summary = "Companion library for R.swift, featuring types used to type resources" | |
spec.description = <<-DESC | |
This library contains types used by the `R.generated.swift` file that is normally generated by R.swift. R.swift depends on this pod to include some types and other libraries can use this project to extend R.swift types. | |
R.swift is a tool to get strong typed, autocompleted resources like images, fonts and segues in Swift projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |spec| | |
spec.name = "R.swift" | |
spec.version = "5.0.0.alpha.2" | |
spec.license = "MIT" | |
spec.summary = "Get strong typed, autocompleted resources like images, fonts and segues in Swift projects" | |
spec.description = <<-DESC | |
R.swift is a tool to get strong typed, autocompleted resources like images, fonts and segues in Swift projects. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "Sparkle" | |
s.version = "0.1.0" | |
s.summary = "A software update framework for the Mac" | |
s.description = <<-DESC | |
Sparkle is an easy-to-use software update framework for Cocoa developers. | |
* True self-updating--no work required from the user. | |
* Displays release notes to the user via WebKit. | |
* Displays a detailed progress window to the user. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Zairnd:~ rick$ pod ipc repl | |
version: '0.28.0' | |
spec /Users/rick/.cocoapods/repos/master/Grand Object Dispatch/0.5.0/Grand Object Dispatch.podspec | |
[!] No podspec exists at path `/Users/rick/.cocoapods/repos/master/Grand`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)checkCocoaPodsVersion | |
{ | |
NSTask *task = [[NSTask alloc] init]; | |
NSPipe *output = [NSPipe pipe]; | |
output.fileHandleForReading.readabilityHandler = ^ (NSFileHandle *fileHandle) | |
{ | |
NSData *data = [fileHandle availableData]; | |
NSLog(@"read: %@", [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)checkCocoaPodsVersion | |
{ | |
DSUnixShellTask *task = [DSUnixTaskSubProcessManager shellTask]; | |
[[DSUnixTaskSubProcessManager sharedManager] setLoggingEnabled:YES]; | |
[task setCommand:@"pod"]; | |
[task setArguments:@[@"--version"]]; | |
[task setStandardErrorHandler:^(DSUnixTask *task, NSString *error) | |
{ | |
NSLog(@"DSUnixTask error: %@", error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buildNumber=`expr $(git rev-list HEAD | wc -l) + 1` | |
/usr/libexec/PlistBuddy -c "Set :CFBundleVersion $buildNumber" "${PROJECT_DIR}/${INFOPLIST_FILE}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = "OpenWeatherMapAPI" | |
s.version = "0.0.5" | |
s.summary = "A simple api for getting data from http://openweathermap.org." | |
s.homepage = "https://github.com/ricobeck/OpenWeatherMapAPI.git" | |
s.license = { :type => 'MIT', :file => 'LICENSE'} | |
s.author = { "Adrian Bak" => "valinorsgatekeeper@gmail.com" } | |
s.ios.deployment_target = "5.1" | |
s.osx.deployment_target = "10.7" | |
s.source = { :git => "https://github.com/ricobeck/OpenWeatherMapAPI.git", :tag => s.version.to_s } |
NewerOlder