Skip to content

Commit

Permalink
Revert "Version 1.0.0 🥳🎊 (#257)"
Browse files Browse the repository at this point in the history
This reverts commit 3caea10.
  • Loading branch information
chanhihi authored Apr 29, 2024
1 parent 3caea10 commit 95700e4
Show file tree
Hide file tree
Showing 176 changed files with 153 additions and 8,488 deletions.
10 changes: 0 additions & 10 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

51 changes: 0 additions & 51 deletions .github/Release-note.yml

This file was deleted.

98 changes: 0 additions & 98 deletions .github/workflows/Deployment.yml

This file was deleted.

9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,6 @@
.DS_Store
.AppleDouble
.LSOverride
.env

# Auth
*.key
*.p8
*.p12
*.cer

# Icon must end with two
Icon
Expand Down Expand Up @@ -75,5 +68,3 @@ Derived/

### Tuist managed dependencies ###
Tuist/Dependencies

.mise.toml
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

4 changes: 0 additions & 4 deletions Gemfile

This file was deleted.

19 changes: 0 additions & 19 deletions Makefile

This file was deleted.

76 changes: 9 additions & 67 deletions Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,15 @@ protocol ProjectFactory {
class iBoxFactory: ProjectFactory {
let projectName: String = "iBox"
let bundleId: String = "com.box42.iBox"
let iosVersion: String = "15.0"

let dependencies: [TargetDependency] = [
.external(name: "SnapKit"),
.external(name: "SwiftSoup"),
.external(name: "SkeletonView"),
.target(name: "iBoxShareExtension")
]

let iBoxShareExtensionDependencies: [TargetDependency] = [
.external(name: "SnapKit")
]

private let appInfoPlist: [String: Plist.Value] = [
let infoPlist: [String: Plist.Value] = [
"ITSAppUsesNonExemptEncryption": false,
"CFBundleDisplayName": "iBox",
"CFBundleName": "iBox",
"CFBundleShortVersionString": "1.0.0",
"CFBundleShortVersionString": "1.2.1",
"CFBundleVersion": "1",
"UILaunchStoryboardName": "LaunchScreen",
"UIApplicationSceneManifest": [
Expand All @@ -45,72 +36,23 @@ class iBoxFactory: ProjectFactory {
]
]
],
"CFBundleURLTypes": [
[
"CFBundleURLName": "com.url.iBox",
"CFBundleURLSchemes": ["iBox"],
"CFBundleTypeRole": "Editor"
]
],
"NSAppTransportSecurity": [
"NSAllowsArbitraryLoadsInWebContent": true
]
"UIUserInterfaceStyle": "Light"
]

private let shareExtensionInfoPlist: [String: Plist.Value] = [
"CFBundleDisplayName": "iBox.Share",
"CFBundleShortVersionString": "1.0.0",
"CFBundleVersion": "1",
"NSExtension": [
"NSExtensionAttributes": [
"NSExtensionActivationRule": [
"NSExtensionActivationSupportsWebPageWithMaxCount": 1,
"NSExtensionActivationSupportsWebURLWithMaxCount": 1,
"SUBQUERY": [
"extensionItems": [
"SUBQUERY": [
"attachments": [
"ANY $attachment.registeredTypeIdentifiers UTI-CONFORMS-TO 'public.data'": "TRUE"
],
"@count": 1
]
],
"@count": 1
]
]
],
"NSExtensionPointIdentifier": "com.apple.share-services",
"NSExtensionPrincipalClass": "$(PRODUCT_MODULE_NAME).CustomShareViewController"
]
]

func generateTarget() -> [ProjectDescription.Target] {
let appTarget = Target(
func generateTarget() -> [ProjectDescription.Target] {[
Target(
name: projectName,
destinations: .iOS,
product: .app,
bundleId: bundleId,
deploymentTargets: .iOS(iosVersion),
infoPlist: .extendingDefault(with: appInfoPlist),
deploymentTargets: .iOS("15.0"),
infoPlist: .extendingDefault(with: infoPlist),
sources: ["\(projectName)/Sources/**"],
resources: "\(projectName)/Resources/**",
dependencies: dependencies
)

let shareExtensionTarget = Target(
name: "\(projectName)ShareExtension",
destinations: .iOS,
product: .appExtension,
bundleId: "\(bundleId).ShareExtension",
deploymentTargets: .iOS(iosVersion),
infoPlist: .extendingDefault(with: shareExtensionInfoPlist),
sources: ["ShareExtension/Sources/**"],
resources: ["ShareExtension/Resources/**"],
dependencies: iBoxShareExtensionDependencies
)

return [appTarget, shareExtensionTarget]
}
]}


}

Expand Down
Loading

0 comments on commit 95700e4

Please sign in to comment.