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
// | |
// ContentView.swift | |
// dev | |
// | |
// Created by César Pinto Castillo on 2024-07-03. | |
// | |
import SwiftUI | |
struct ContentView: View { |
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
.onReceive(NotificationCenter.default.publisher(for: UIApplication.willResignActiveNotification)) { _ in | |
WidgetCenter.shared.reloadAllTimelines() | |
} |
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
protocol Nameable { | |
/// This func is required by anyone who conforms to this protocol | |
func lastName() -> String | |
} | |
extension Nameable { | |
/// This will be the default implementation if the conforming class doesn't override this implementation. | |
func firstname() -> String { | |
return "John Appleseed" | |
} |
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
lane :beta do | |
ensure_git_status_clean | |
latestBuildNumber = bump_build_number | |
# Git tag must not already exist. If it does, check if we forgot to bump version or | |
# delete previous tag on remote. | |
git_tag_name = "v#{version}(#{latestBuildNumber})" | |
UI.crash!("Git tag #{git_tag_name} already exists.") if git_tag_exists(tag: git_tag_name) | |
build_app(scheme: "Volante") |
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
#!/bin/sh | |
message="$1" | |
curl -so \ | |
- --data "title=$message&token=[token-here]" \ | |
https://pushmeapi.jagcesar.se | |
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
#------------------------------------------------| | |
#----------------------------------------------------------------------| |
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
# Customise this file, documentation can be found here: | |
# https://github.com/fastlane/fastlane/tree/master/docs | |
# All available actions: https://github.com/fastlane/fastlane/blob/master/fastlane/docs/Actions.md | |
# can also be listed using the `fastlane actions` command | |
# Change the syntax highlighting to Ruby | |
# All lines starting with a # are ignored when running `fastlane` | |
# If you want to automatically update fastlane if a new version is available: | |
# update_fastlane |
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
language: objective-c | |
before_script: | |
- chmod +x scripts/travis/add-key.sh | |
- chmod +x scripts/travis/remove-key.sh | |
- chmod +x scripts/travis/testflight.sh | |
- ./scripts/travis/add-key.sh | |
script: xctool -workspace [Workspace name].xcworkspace -scheme '[Scheme to use]' -configuration [Build configuration name] -sdk iphoneos7.1 CONFIGURATION_BUILD_DIR='~/build/' build | |
after_success: | |
- ./scripts/travis/testflight.sh | |
after_script: |