This file contains hidden or 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
// swift-tools-version: 6.2 | |
// The swift-tools-version declares the minimum version of Swift required to build this package. | |
import PackageDescription | |
let package = Package( | |
name: "SamplePackage", | |
platforms: [.iOS(.v17)], | |
products: [ | |
.library( |
This file contains hidden or 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
private enum Plugins { | |
case rswiftGenerateInternalResources | |
private var definition: (name: String, package: ExternalPackage) { | |
switch self { | |
case .rswiftGenerateInternalResources: (name: "RswiftGenerateInternalResources", package: .rswift) | |
} | |
} | |
var name: String { definition.name } |
This file contains hidden or 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
let package = Package( | |
name: "SamplePackage", | |
platforms: [.iOS(.v17)], | |
products: [ | |
.library( | |
name: "iOS", | |
targets: ["iOS"] | |
), | |
], | |
dependencies: ExternalPackage.allCases.map { $0.dependency }, |
This file contains hidden or 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
private enum Targets: CaseIterable { | |
case ios | |
case search | |
case setting | |
case welcome | |
private var definition: PackageDescription.Target { | |
switch self { | |
case .ios: .target( | |
name: "iOS", |
This file contains hidden or 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
let package = Package( | |
name: "SamplePackage", | |
platforms: [.iOS(.v17)], | |
products: [ | |
.library( | |
name: "iOS", | |
targets: ["iOS"] | |
), | |
], | |
dependencies: ExternalPackage.allCases.map { $0.dependency }, |
This file contains hidden or 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
private enum ExternalPackage: CaseIterable { | |
case firebase | |
case rswift | |
private var definition: (name: String, dependency: Package.Dependency) { | |
switch self { | |
case .firebase: | |
( | |
name: "firebase-ios-sdk", | |
dependency: .package(url: "https://github.com/firebase/firebase-ios-sdk", .upToNextMajor(from: "10.22.0")) |
This file contains hidden or 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
let package = Package( | |
name: "SamplePackage", | |
platforms: [.iOS(.v17)], | |
products: [ | |
.library( | |
name: "iOS", | |
targets: ["iOS"] | |
), | |
], | |
dependencies: [ |
This file contains hidden or 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 UIKit | |
import CoreLocation | |
final class ViewController: UIViewController { | |
private let locationManager: CLLocationManager = CLLocationManager() | |
private var beaconResion: CLBeaconRegion! | |
let uuid = UUID(uuidString: "41462998-6CEB-4511-9D46-1F7E27AA6572")! | |
let major = CLBeaconMajorValue(18) | |
let minor = CLBeaconMinorValue(5) |
This file contains hidden or 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
{ | |
"identity": "memoliapackage", | |
"name": "MemoliaPackage", | |
"url": "/Users/fromatom/projects/github.com/FromAtom/Memolia/MemoliaPackage", | |
"version": "unspecified", | |
"path": "/Users/fromatom/projects/github.com/FromAtom/Memolia/MemoliaPackage", | |
"dependencies": [ | |
{ | |
"identity": "swift-composable-architecture", | |
"name": "swift-composable-architecture", |
This file contains hidden or 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
# | |
# ENV["ESA_POST_NUMBER"]: 更新するesa記事の番号. | |
# ENV["SLACK_OAUTH_ACCESS_TOKEN"]: SlackのAccessToken. `channels:read` 権限が必要. | |
# ENV['ESA_API_TOKEN']: esaのtoken. write権限が必要. | |
# ENV['ESA_TEAM']: esaのteam名. | |
# ENV['SLACK_TEAM_NAME']: https://TEAM_NAME.slack.com の TEAM_NAME部分 | |
# | |
require 'slack-ruby-client' | |
require 'esa' |
NewerOlder