Skip to content

Commit 1e8c6dc

Browse files
committed
v4.0.3
1 parent f5e8253 commit 1e8c6dc

File tree

6 files changed

+1415
-128
lines changed

6 files changed

+1415
-128
lines changed

Pearcleaner.xcodeproj/project.pbxproj

+4-8
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
C7F8436C2CBF066F00E3E30A /* Localizable.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */; };
5252
C7FB173B2B96321300B96F9A /* AppsListView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FB173A2B96321300B96F9A /* AppsListView.swift */; };
5353
C7FEBA112BDC422200AE195F /* AppSearchView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7FEBA102BDC422200AE195F /* AppSearchView.swift */; };
54-
CE0934E32CFE9B9C00073AEB /* InfoPlist.xcstrings in Resources */ = {isa = PBXBuildFile; fileRef = CE0934E22CFE9B9C00073AEB /* InfoPlist.xcstrings */; };
5554
/* End PBXBuildFile section */
5655

5756
/* Begin PBXContainerItemProxy section */
@@ -144,7 +143,6 @@
144143
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = Localizable.xcstrings; sourceTree = "<group>"; };
145144
C7FB173A2B96321300B96F9A /* AppsListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppsListView.swift; sourceTree = "<group>"; };
146145
C7FEBA102BDC422200AE195F /* AppSearchView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppSearchView.swift; sourceTree = "<group>"; };
147-
CE0934E22CFE9B9C00073AEB /* InfoPlist.xcstrings */ = {isa = PBXFileReference; lastKnownFileType = text.json.xcstrings; path = InfoPlist.xcstrings; sourceTree = "<group>"; };
148146
/* End PBXFileReference section */
149147

150148
/* Begin PBXFrameworksBuildPhase section */
@@ -235,7 +233,6 @@
235233
C77B90242AF2D796009CC655 /* Pearcleaner.entitlements */,
236234
C77B90072AF18E2F009CC655 /* Assets.xcassets */,
237235
C7F8436A2CBF066F00E3E30A /* Localizable.xcstrings */,
238-
CE0934E22CFE9B9C00073AEB /* InfoPlist.xcstrings */,
239236
);
240237
path = Resources;
241238
sourceTree = "<group>";
@@ -428,7 +425,6 @@
428425
files = (
429426
C77B90082AF18E2F009CC655 /* Assets.xcassets in Resources */,
430427
C7A27E812AFD7C4600166168 /* com.alienator88.PearcleanerSentinel.plist in Resources */,
431-
CE0934E32CFE9B9C00073AEB /* InfoPlist.xcstrings in Resources */,
432428
C7F8436B2CBF066F00E3E30A /* Localizable.xcstrings in Resources */,
433429
);
434430
runOnlyForDeploymentPostprocessing = 0;
@@ -560,8 +556,8 @@
560556
isa = XCBuildConfiguration;
561557
buildSettings = {
562558
ALWAYS_SEARCH_USER_PATHS = NO;
563-
APP_BUILD = 68;
564-
APP_VERSION = 4.0.2;
559+
APP_BUILD = 69;
560+
APP_VERSION = 4.0.3;
565561
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
566562
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
567563
CLANG_ANALYZER_NONNULL = YES;
@@ -632,8 +628,8 @@
632628
isa = XCBuildConfiguration;
633629
buildSettings = {
634630
ALWAYS_SEARCH_USER_PATHS = NO;
635-
APP_BUILD = 68;
636-
APP_VERSION = 4.0.2;
631+
APP_BUILD = 69;
632+
APP_VERSION = 4.0.3;
637633
ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;
638634
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
639635
CLANG_ANALYZER_NONNULL = YES;

Pearcleaner/Logic/AppPathsFetch.swift

+6-2
Original file line numberDiff line numberDiff line change
@@ -283,12 +283,16 @@ class AppPathFinder {
283283
for condition in conditions {
284284
if useBundleIdentifier && bundleIdentifierL.contains(condition.bundle_id) {
285285
// Exclude keywords
286-
let hasExcludeKeyword = condition.exclude.contains(where: itemL.contains)
286+
let hasExcludeKeyword = condition.exclude.contains { keyword in
287+
itemL.pearFormat().contains(keyword.pearFormat())
288+
}
287289
if hasExcludeKeyword {
288290
return false
289291
}
290292
// Include keywords
291-
let hasIncludeKeyword = condition.include.contains(where: itemL.contains)
293+
let hasIncludeKeyword = condition.include.contains { keyword in
294+
itemL.pearFormat().contains(keyword.pearFormat())
295+
}
292296
if hasIncludeKeyword {
293297
return true
294298
}

Pearcleaner/Logic/Conditions.swift

+6
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ var conditions: [Condition] = [
145145
exclude: [],
146146
includeForce: nil
147147
),
148+
Condition(
149+
bundle_id: "com.now.gg.BlueStacks",
150+
include: ["bst_boost_interprocess"],
151+
exclude: [],
152+
includeForce: nil
153+
),
148154
]
149155

150156

Pearcleaner/Logic/Locations.swift

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class Locations: ObservableObject {
2727

2828
self.apps = Category(name: "Apps", paths: [
2929
"\(home)",
30+
"\(home)/Documents",
3031
"\(home)/Library",
3132
"\(home)/Library/Application Scripts",
3233
"\(home)/Library/Application Support",
@@ -45,6 +46,7 @@ class Locations: ObservableObject {
4546
"\(home)/Library/WebKit",
4647
"/Users/Shared",
4748
"/Users/Library",
49+
"/Users/Shared/Library/Application Support",
4850
"/Library",
4951
"/Library/Application Support",
5052
"/Library/Application Support/CrashReporter",
@@ -93,6 +95,7 @@ class Locations: ObservableObject {
9395
"\(home)/Library/Preferences/ByHost",
9496
"\(home)/Library/Saved Application State",
9597
"\(home)/Library/WebKit",
98+
"/Users/Shared/Library/Application Support",
9699
"/Library/Application Support",
97100
"/Library/Application Support/CrashReporter",
98101
"/Library/Internet Plug-Ins",

Pearcleaner/Resources/InfoPlist.xcstrings

-114
This file was deleted.

0 commit comments

Comments
 (0)