Browse Source

APPLEMAIL-42 Delete unused code. Add install scheme.

APPLEMAIL-42
David Alarcon 1 year ago
parent
commit
89bb682032
4 changed files with 70 additions and 7 deletions
  1. +0
    -5
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/Interface/PEPObjCAdapterXPCApiClientService.h
  2. +2
    -1
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m
  3. +1
    -1
      Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCService/XPCService/PEPObjCAdapterXPCApi.m
  4. +67
    -0
      pEpMacOSAdapter.xcodeproj/xcshareddata/xcschemes/Install pEpMacOSAdapter Service.xcscheme

+ 0
- 5
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/Interface/PEPObjCAdapterXPCApiClientService.h View File

@ -19,11 +19,6 @@ NS_ASSUME_NONNULL_BEGIN
- (void)start;
- (void)stop;
/// Wraps color_from_rating.
- (void)colorFromRating:(PEPRating)rating
errorCallback:(void (^)(NSError * _Nonnull))errorCallback
successCallback:(void (^)(PEPColor))successCallback;
@end
NS_ASSUME_NONNULL_END

+ 2
- 1
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCApiClient/XPCService/PEPObjCAdapterXPCApiClientService.m View File

@ -103,7 +103,8 @@ successCallback:(nonnull void (^)(PEPIdentity * _Nonnull))successCallback {
__block PEPColor color = PEPColorNoColor;
[[self.connection synchronousRemoteObjectProxyWithErrorHandler:^(NSError * _Nonnull error) {
NSLog(@"[PEP4I meant I'll keep working on it a little bit more, and we APPLEMAIL] Error: %@", error);
NSLog(@"[PEP4APPLEMAIL] Error: %@", error);
// Nothing to do
}] colorFromRating:rating resultBlock:^(PEPObjCAdapterXpcApiResult * _Nonnull result) {
color = [(NSNumber *)[result.result firstObject] intValue];
}];


+ 1
- 1
Subprojects/PEPObjCAdapterXPCService/PEPObjCAdapterXPCService/XPCService/PEPObjCAdapterXPCApi.m View File

@ -65,7 +65,7 @@
- (void)colorFromRating:(PEPRating)rating
resultBlock:(void (^)(PEPObjCAdapterXpcApiResult * _Nonnull))resultCallback {
NSLog(@"%s, __PRETTY_FUNCTION__");
NSLog(@"%s", __PRETTY_FUNCTION__);
PEPSession *session = [PEPSession new];
PEPColor color = [session colorFromRating:rating];


+ 67
- 0
pEpMacOSAdapter.xcodeproj/xcshareddata/xcschemes/Install pEpMacOSAdapter Service.xcscheme View File

@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4E44A4C226247559001F9D55"
BuildableName = "Install pEpMacOSAdapter Service"
BlueprintName = "Install pEpMacOSAdapter Service"
ReferencedContainer = "container:pEpMacOSAdapter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "4E44A4C226247559001F9D55"
BuildableName = "Install pEpMacOSAdapter Service"
BlueprintName = "Install pEpMacOSAdapter Service"
ReferencedContainer = "container:pEpMacOSAdapter.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

Loading…
Cancel
Save