Skip to content

Instantly share code, notes, and snippets.

$ fastlane run clear_derived_data
$ pod cache clean --all
$ rm -vfr Pods/ Podfile.lock
$ pod install
@Antondomashnev
Antondomashnev / gist:60b26b6d9dd25d04cf7310e673d247f6
Created November 6, 2016 22:43
Showcase of fastlane lanes to update yaml CHANGELOG file as yaml
lane :put_upcoming_to_releases do
changelog_data = get_changelog_data
upcoming = changelog_data["upcoming"].clone
changelog_data["upcoming"]["version"] = nil
changelog_data["upcoming"]["notes"] = nil
if changelog_data["releases"].count > 0
changelog_data["releases"].unshift(upcoming)
else
changelog_data["releases"].push(upcoming)
end
@Antondomashnev
Antondomashnev / Result.h
Created July 11, 2017 20:55
Objective-C µframework - trying to imitate Result patter
NS_ASSUME_NONNULL_BEGIN
#define ResultSuccess(result) [Result<typeof(result)> succeededWithResult:result]
#define ResultFailure(error) [Result failedWithError:result]
typedef NS_ENUM(NSInteger, ResultType) {
ResultTypeSuccess,
ResultTypeFailure
};