Skip to content
This repository has been archived by the owner on Sep 27, 2020. It is now read-only.

Commit

Permalink
- Associate with magnet link
Browse files Browse the repository at this point in the history
  • Loading branch information
15cm committed Aug 23, 2017
1 parent 1f1ae4f commit c2bb1f4
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 104 deletions.
8 changes: 0 additions & 8 deletions AMM.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
2E02C97E1E4392C100A6272D /* AMMConstants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E02C97D1E4392C100A6272D /* AMMConstants.swift */; };
2E03C1751E3EE3B100E8BE9E /* TaskMenuItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E03C1741E3EE3B100E8BE9E /* TaskMenuItem.swift */; };
2E03C17B1E40870500E8BE9E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2E03C17A1E40870500E8BE9E /* Assets.xcassets */; };
2E045E501E3CB39B0079EE52 /* Aria2Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E045E4F1E3CB39B0079EE52 /* Aria2Tests.swift */; };
2E1195891F4BD34800A7AB81 /* SelectServerWindowController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E1195871F4BD34800A7AB81 /* SelectServerWindowController.swift */; };
2E11958A1F4BD34800A7AB81 /* SelectServerWindowController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 2E1195881F4BD34800A7AB81 /* SelectServerWindowController.xib */; };
2E11958C1F4C7B7800A7AB81 /* UIHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E11958B1F4C7B7800A7AB81 /* UIHelper.swift */; };
Expand All @@ -34,7 +33,6 @@
2E468AAC1E39B123009C6CA3 /* Aria2Task.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E468AAB1E39B123009C6CA3 /* Aria2Task.swift */; };
2E468AAE1E39BA45009C6CA3 /* Aria2Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E468AAD1E39BA45009C6CA3 /* Aria2Constants.swift */; };
2E5DC59C1E69879600184E0B /* ResizableTabViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E5DC59B1E69879600184E0B /* ResizableTabViewController.swift */; };
2E644A551E41B24D00C6347C /* ServerProfileTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E644A541E41B24D00C6347C /* ServerProfileTests.swift */; };
2E644A611E422B1D00C6347C /* ServerProfileArrayController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E644A601E422B1D00C6347C /* ServerProfileArrayController.swift */; };
2E644A641E42CDD700C6347C /* ServerProfileMenuItemViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E644A621E42CDD700C6347C /* ServerProfileMenuItemViewController.swift */; };
2E644A671E42DE4200C6347C /* Aria2Stat.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E644A661E42DE4200C6347C /* Aria2Stat.swift */; };
Expand Down Expand Up @@ -86,7 +84,6 @@
2E02C97D1E4392C100A6272D /* AMMConstants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AMMConstants.swift; sourceTree = "<group>"; };
2E03C1741E3EE3B100E8BE9E /* TaskMenuItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TaskMenuItem.swift; sourceTree = "<group>"; };
2E03C17A1E40870500E8BE9E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2E045E4F1E3CB39B0079EE52 /* Aria2Tests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Aria2Tests.swift; sourceTree = "<group>"; };
2E1195871F4BD34800A7AB81 /* SelectServerWindowController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SelectServerWindowController.swift; sourceTree = "<group>"; };
2E1195881F4BD34800A7AB81 /* SelectServerWindowController.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SelectServerWindowController.xib; sourceTree = "<group>"; };
2E11958B1F4C7B7800A7AB81 /* UIHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIHelper.swift; sourceTree = "<group>"; };
Expand All @@ -110,7 +107,6 @@
2E468AAB1E39B123009C6CA3 /* Aria2Task.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Aria2Task.swift; sourceTree = "<group>"; };
2E468AAD1E39BA45009C6CA3 /* Aria2Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Aria2Constants.swift; sourceTree = "<group>"; };
2E5DC59B1E69879600184E0B /* ResizableTabViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ResizableTabViewController.swift; sourceTree = "<group>"; };
2E644A541E41B24D00C6347C /* ServerProfileTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ServerProfileTests.swift; sourceTree = "<group>"; };
2E644A601E422B1D00C6347C /* ServerProfileArrayController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ServerProfileArrayController.swift; sourceTree = "<group>"; };
2E644A621E42CDD700C6347C /* ServerProfileMenuItemViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ServerProfileMenuItemViewController.swift; sourceTree = "<group>"; };
2E644A661E42DE4200C6347C /* Aria2Stat.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Aria2Stat.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -247,9 +243,7 @@
isa = PBXGroup;
children = (
2E9E31D51E59BAB200316B9E /* AMMPreferencesTests.swift */,
2E045E4F1E3CB39B0079EE52 /* Aria2Tests.swift */,
2E468A6E1E398482009C6CA3 /* Info.plist */,
2E644A541E41B24D00C6347C /* ServerProfileTests.swift */,
);
path = AMMTests;
sourceTree = "<group>";
Expand Down Expand Up @@ -420,8 +414,6 @@
buildActionMask = 2147483647;
files = (
2E9E31D61E59BAB200316B9E /* AMMPreferencesTests.swift in Sources */,
2E045E501E3CB39B0079EE52 /* Aria2Tests.swift in Sources */,
2E644A551E41B24D00C6347C /* ServerProfileTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
26 changes: 13 additions & 13 deletions AMM/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.2</string>
<key>CFBundleVersion</key>
<string>170619_1</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 sinkerine. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
<string>0.4.3</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
Expand All @@ -45,5 +33,17 @@
</array>
</dict>
</array>
<key>CFBundleVersion</key>
<string>170822</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>LSUIElement</key>
<true/>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 Sinkerine. All rights reserved.</string>
<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>
</dict>
</plist>
4 changes: 2 additions & 2 deletions AMMTests/AMMPreferencesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ class AMMPreferencesTests: XCTestCase {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
let servers: [ServerProfile] = [
ServerProfile(uuid: NSUUID().uuidString, aria2: Aria2(ptcl: .ws, host: "host1", port: 1111, path: "/jsonrpc")!, remark: "test1", globalStatRefreshInterval: 1, taskStatRefreshInterval: 1, activeTaskTotal: 5, waitingTaskTotal: 5, stoppedTaskTotal: 5, taskStartNotiEnabled: false, taskPauseNotiEnabled: false, taskCompleteNotiEnabled: false)!,
ServerProfile(uuid: NSUUID().uuidString, aria2: Aria2(ptcl: .ws, host: "host2", port: 1111, path: "/jsonrpc")!, remark: "test2", globalStatRefreshInterval: 1, taskStatRefreshInterval: 1, activeTaskTotal: 5, waitingTaskTotal: 5, stoppedTaskTotal: 5, taskStartNotiEnabled: false, taskPauseNotiEnabled: false, taskCompleteNotiEnabled: false)!
ServerProfile(uuid: NSUUID().uuidString, aria2: Aria2(ptcl: .ws, host: "host1", port: 1111, path: "/jsonrpc")!, remark: "test1", globalStatRefreshInterval: 1, taskStatRefreshInterval: 1, activeTaskTotal: 5, waitingTaskTotal: 5, stoppedTaskTotal: 5, taskStartNotiEnabled: false, taskPauseNotiEnabled: false, taskCompleteNotiEnabled: false, isDefaultServer: false)!,
ServerProfile(uuid: NSUUID().uuidString, aria2: Aria2(ptcl: .ws, host: "host2", port: 1111, path: "/jsonrpc")!, remark: "test2", globalStatRefreshInterval: 1, taskStatRefreshInterval: 1, activeTaskTotal: 5, waitingTaskTotal: 5, stoppedTaskTotal: 5, taskStartNotiEnabled: false, taskPauseNotiEnabled: false, taskCompleteNotiEnabled: false, isDefaultServer: false)!
]
preferences.reset()
assert(preferences.servers.count == 0)
Expand Down
44 changes: 0 additions & 44 deletions AMMTests/Aria2Tests.swift

This file was deleted.

37 changes: 0 additions & 37 deletions AMMTests/ServerProfileTests.swift

This file was deleted.

0 comments on commit c2bb1f4

Please sign in to comment.