Skip to content

Commit

Permalink
v4.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alienator88 committed Jan 22, 2025
1 parent 209a7ff commit 6e6839e
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 31 deletions.
9 changes: 5 additions & 4 deletions Pearcleaner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,7 @@
"zh-Hans",
ja,
tr,
es,
);
mainGroup = C77B8FF72AF18E2E009CC655;
packageReferences = (
Expand Down Expand Up @@ -556,8 +557,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_BUILD = 71;
APP_VERSION = 4.0.5;
APP_BUILD = 72;
APP_VERSION = 4.0.6;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
Expand Down Expand Up @@ -628,8 +629,8 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
APP_BUILD = 71;
APP_VERSION = 4.0.5;
APP_BUILD = 72;
APP_VERSION = 4.0.6;
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_ANALYZER_NONNULL = YES;
Expand Down
7 changes: 4 additions & 3 deletions Pearcleaner/Logic/Logic.swift
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,12 @@ func getCaskIdentifier(for appName: String) -> String? {
let appDirectory = "\(caskSubPath)/\(latestVersion)/"

// List all files in the version directory and check for .app file
let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter { !$0.hasPrefix(".") }

// let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter { !$0.hasPrefix(".") }
let appsInDir = try fileManager.contentsOfDirectory(atPath: appDirectory).filter {
!$0.hasPrefix(".") && $0.hasSuffix(".app") && !$0.lowercased().contains("uninstall")
}
if let appFile = appsInDir.first(where: { $0.hasSuffix(".app") }) {
let realAppName = appFile.replacingOccurrences(of: ".app", with: "").lowercased()

// Compare the lowercased app names for case-insensitive match
if realAppName == lowercasedAppName {
return realAppName.replacingOccurrences(of: " ", with: "-").lowercased()
Expand Down
1 change: 1 addition & 0 deletions Pearcleaner/Settings/About.swift
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ struct Sponsor: Identifiable {
let url: URL

static let sponsors: [Sponsor] = [
Sponsor(name: "Sagittarius", url: URL(string: "https://github.com/sagittarius-codebase")!),
Sponsor(name: "Ilovecatz17", url: URL(string: "https://github.com/Ilovecatz17")!),
Sponsor(name: "ichoosetoaccept", url: URL(string: "https://github.com/ichoosetoaccept")!),
Sponsor(name: "barats", url: URL(string: "https://github.com/barats")!),
Expand Down
50 changes: 26 additions & 24 deletions Pearcleaner/Views/MiniMode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,33 +59,35 @@ struct MiniEmptyView: View {
@Binding var showPopover: Bool

var body: some View {
VStack(alignment: .center) {
ZStack() {

Spacer()

LinearGradient(gradient: Gradient(colors: [.green, .orange]), startPoint: .leading, endPoint: .trailing)
.mask(
Image(systemName: "plus.square.dashed")
.resizable()
.scaledToFit()
.frame(width: 120, height: 120, alignment: .center)
.padding()
.fontWeight(.ultraLight)
.offset(x: 5, y: 5)
)

Text("Drop an app here")
.font(.title3)
.opacity(0.7)

Text("Click for apps list")
.font(.footnote)
.padding(.bottom, 25)
.opacity(0.5)
VStack {
Spacer()
LinearGradient(gradient: Gradient(colors: [.green, .orange]), startPoint: .leading, endPoint: .trailing)
.mask(
Image(systemName: "plus.square.dashed")
.resizable()
.scaledToFit()
.frame(width: 120, height: 120, alignment: .center)
.padding()
.fontWeight(.ultraLight)
.offset(x: 5, y: 5)
)
Spacer()
}

Spacer()
VStack {
Spacer()
Text("Drop an app here")
.font(.title3)
.opacity(0.7)

Text("Click for apps list")
.font(.footnote)
.padding(.bottom, 25)
.opacity(0.5)
}


}
.onTapGesture {
withAnimation(Animation.easeInOut(duration: animationEnabled ? 0.35 : 0)) {
Expand Down

0 comments on commit 6e6839e

Please sign in to comment.