Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from wendyliga/rewrite-to-swift
Browse files Browse the repository at this point in the history
Rewrite to swift
  • Loading branch information
wendyliga authored Mar 29, 2020
2 parents 1e83332 + 77e6aba commit 3e224fb
Show file tree
Hide file tree
Showing 9 changed files with 593 additions and 10 deletions.
116 changes: 114 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,114 @@
mimiq
mimiq.tar.gz
# Created by https://www.gitignore.io/api/xcode,macos,swift,swiftpm,swiftpackagemanager
# Edit at https://www.gitignore.io/?templates=xcode,macos,swift,swiftpm,swiftpackagemanager

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Swift ###
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## Build generated
build/
DerivedData/

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata/

## Other
*.moved-aside
*.xccheckout
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
.build/
# Add this line if you want to avoid checking in Xcode SPM integration.
.swiftpm/xcode

# CocoaPods
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
# Pods/
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build

# Accio dependency management
Dependencies/
.accio/

# fastlane
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

### SwiftPackageManager ###
Packages
xcuserdata
*.xcodeproj
16 changes: 16 additions & 0 deletions MakeFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
prefix ?= /usr/local
bindir = $(prefix)/bin

build:
swift build -c release --disable-sandbox

install: build
install ".build/release/mimiq" "$(bindir)"

uninstall:
rm -rf "$(bindir)/mimiq"

clean:
rm -rf .build

.PHONY: build install uninstall clean
43 changes: 43 additions & 0 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"object": {
"pins": [
{
"package": "ConsoleIO",
"repositoryURL": "https://github.com/wendyliga/ConsoleIO.git",
"state": {
"branch": "improve_input",
"revision": "5849429bb2a5cb809d35a1f9e620ff1261b66501",
"version": null
}
},
{
"package": "Explorer",
"repositoryURL": "https://github.com/wendyliga/Explorer.git",
"state": {
"branch": null,
"revision": "eee4f6224853f236490a8349b70553fd59876551",
"version": "0.0.3"
}
},
{
"package": "swift-argument-parser",
"repositoryURL": "https://github.com/apple/swift-argument-parser",
"state": {
"branch": null,
"revision": "8d31a0905c346a45c87773ad50862b5b3df8dff6",
"version": "0.0.4"
}
},
{
"package": "SwiftKit",
"repositoryURL": "https://github.com/wendyliga/SwiftKit.git",
"state": {
"branch": null,
"revision": "391846c051f6c0b83ba729baebb89d3ff92750d4",
"version": "2.0.1"
}
}
]
},
"version": 1
}
22 changes: 22 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "mimiq",
dependencies: [
.package(url: "https://github.com/apple/swift-argument-parser", .upToNextMinor(from: "0.0.1")),
.package(url: "https://github.com/wendyliga/ConsoleIO.git", .branch("improve_input")),
.package(url: "https://github.com/wendyliga/Explorer.git", from: "0.0.3"),
],
targets: [
.target(
name: "mimiq",
dependencies: ["ArgumentParser", "Explorer", "ConsoleIO"]
),
.testTarget(
name: "mimiqTests",
dependencies: ["mimiq"]),
]
)
Loading

0 comments on commit 3e224fb

Please sign in to comment.