Skip to content

Commit

Permalink
 Modification for AppStore (#10)
Browse files Browse the repository at this point in the history
* Remove sparkle

* Add privacy policy
  • Loading branch information
ThomasBernard03 authored Aug 11, 2024
1 parent 80ed177 commit 7ae267d
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 71 deletions.
27 changes: 2 additions & 25 deletions AndroidTools/AndroidTools.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
81E9822D2BDD06600004B154 /* InstallApplicationUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81E9822C2BDD06600004B154 /* InstallApplicationUseCase.swift */; };
81E9822F2BDD09E70004B154 /* GetDeviceInformationUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81E9822E2BDD09E70004B154 /* GetDeviceInformationUseCase.swift */; };
81E982312BDD0F190004B154 /* RebootDeviceUseCase.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81E982302BDD0F190004B154 /* RebootDeviceUseCase.swift */; };
81E982342BDD2FD10004B154 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = 81E982332BDD2FD10004B154 /* Sparkle */; };
81E982372BDD3A740004B154 /* CheckForUpdateViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81E982362BDD3A740004B154 /* CheckForUpdateViewModel.swift */; };
81E982392BDD3B480004B154 /* CheckForUpdateView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81E982382BDD3B480004B154 /* CheckForUpdateView.swift */; };
81F41C5B2BEA4DF4005F1730 /* TableView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 81F41C5A2BEA4DF4005F1730 /* TableView.swift */; };
Expand Down Expand Up @@ -175,7 +174,6 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
81E982342BDD2FD10004B154 /* Sparkle in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -469,7 +467,6 @@
);
name = AndroidTools;
packageProductDependencies = (
81E982332BDD2FD10004B154 /* Sparkle */,
);
productName = AndroidTools;
productReference = 8178547A2BC59F6300B5B2EE /* AndroidTools.app */;
Expand Down Expand Up @@ -500,7 +497,6 @@
);
mainGroup = 817854712BC59F6300B5B2EE;
packageReferences = (
81E982322BDD2FD10004B154 /* XCRemoteSwiftPackageReference "Sparkle" */,
);
productRefGroup = 8178547B2BC59F6300B5B2EE /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -733,7 +729,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDark;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_ENTITLEMENTS = AndroidTools/AndroidTools.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
Expand Down Expand Up @@ -765,7 +761,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIconDark;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
CODE_SIGN_ENTITLEMENTS = "";
CODE_SIGN_ENTITLEMENTS = AndroidTools/AndroidTools.entitlements;
"CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
Expand Down Expand Up @@ -813,25 +809,6 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
81E982322BDD2FD10004B154 /* XCRemoteSwiftPackageReference "Sparkle" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/sparkle-project/Sparkle";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 2.6.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
81E982332BDD2FD10004B154 /* Sparkle */ = {
isa = XCSwiftPackageProductDependency;
package = 81E982322BDD2FD10004B154 /* XCRemoteSwiftPackageReference "Sparkle" */;
productName = Sparkle;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 817854722BC59F6300B5B2EE /* Project object */;
}

This file was deleted.

18 changes: 13 additions & 5 deletions AndroidTools/AndroidTools/AndroidTools.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spks</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spki</string>
</array>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.device.usb</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.network.server</key>
<true/>
<key>com.apple.security.temporary-exception.mach-lookup.global-name</key>
<array>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spks</string>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)-spki</string>
</array>
</dict>
</plist>
8 changes: 1 addition & 7 deletions AndroidTools/AndroidTools/AndroidToolsApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,11 @@
//

import SwiftUI
import Sparkle

@main
struct AndroidToolsApp: App {

@AppStorage("mode") private var mode = Constants.appearanceModes.first!
private let updaterController : SPUStandardUpdaterController

init(){
updaterController = SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
}

var body: some Scene {

Expand All @@ -27,7 +21,7 @@ struct AndroidToolsApp: App {
}
.commands {
CommandGroup(after: .appInfo) {
CheckForUpdateView(updater: updaterController.updater)
// CheckForUpdateView(updater: updaterController.updater)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@
//

import Foundation
import Sparkle

@Observable
class ApplicationSettingsViewModel : ObservableObject {
let updaterController : SPUStandardUpdaterController

private let getAdbVersionUseCase : GetAdbVersionUseCase = GetAdbVersionUseCase()
private let getAdbPathUseCase : GetAdbPathUseCase = GetAdbPathUseCase()
Expand All @@ -21,12 +19,10 @@ class ApplicationSettingsViewModel : ObservableObject {

var toast : Toast? = nil

init(){
updaterController = SPUStandardUpdaterController(startingUpdater: true, updaterDelegate: nil, userDriverDelegate: nil)
}


func checkForUpdates(){
updaterController.updater.checkForUpdates()
// updaterController.updater.checkForUpdates()
}

func getAdbVersion(){
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,13 @@
//

import SwiftUI
import Sparkle

struct CheckForUpdateView: View {
@ObservedObject private var checkForUpdateViewModel : CheckForUpdateViewModel
private let updater : SPUUpdater

init(updater : SPUUpdater){
self.updater = updater
self.checkForUpdateViewModel = CheckForUpdateViewModel(updater: updater)
}

var body: some View {
Button("Check for updates...") {
updater.checkForUpdates()
//updater.checkForUpdates()
}
.disabled(!checkForUpdateViewModel.canCheckForUpdate)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,8 @@

import Foundation
import SwiftUI
import Sparkle

final class CheckForUpdateViewModel : ObservableObject {
@Published var canCheckForUpdate = false

init(updater : SPUUpdater){
updater.publisher(for: \.canCheckForUpdates)
.assign(to: &$canCheckForUpdate)
}
}
32 changes: 32 additions & 0 deletions Documentation/privacy-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Privacy Policy for Android Tools Application

## Introduction
Welcome to the Android Tool Application ("the Application"). We take your privacy very seriously. This privacy policy explains how we handle your personal information when you use our Application.

## Data Collection and Use
### No Collection of Personal Data
We do not collect any personally identifiable or confidential data from your use of the Application.

### No Advertisements
Our Application does not contain any advertisements, so no data is collected for advertising purposes.

## Access to User Data
### No Access to Personal Data
The Application does not access any personal or confidential user data.

## Data Security
### Secure Procedures
Although we do not collect personal or confidential data, we are committed to following secure practices to ensure the protection of any information you may provide to us through other means (e.g., direct contact).

## Data Retention and Deletion
### No Data Retention
Since we do not collect any personal or confidential data, there is no applicable data retention or deletion policy for the Application.

## Contact
For any questions or requests regarding this privacy policy, you can contact us at the following address: `[email protected]`

## Changes to the Privacy Policy
This privacy policy is effective as of [publication date]. Any changes to this policy will be posted on this page. We encourage you to check this page regularly to stay informed about our privacy practices.

## Conclusion
Your privacy is important to us. Even though our Application does not collect any personal data, we are committed to maintaining the highest standards of privacy and security. Thank you for using our Tarot Scorekeeping Application.

0 comments on commit 7ae267d

Please sign in to comment.