app center;增加發送ping的秒

This commit is contained in:
Caiyanpeng committed 2021-11-12 16:21:13 +08:00
1 parent 1bd1ffdb5a
commit d754ff3b15
719 files changed
+34172 -2875

No files matched your search

@@ -0,0 +1,141 @@
fileFormatVersion: 2
guid: 38f30140422e145a9a6171449a106b95
folderAsset: yes
timeCreated: 1504718816
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
'': Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 1
Exclude Linux: 1
Exclude Linux64: 1
Exclude LinuxUniversal: 1
Exclude OSXIntel: 1
Exclude OSXIntel64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
Exclude tvOS: 1
data:
first:
Android: Android
second:
enabled: 0
settings:
CPU: ARMv7
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
data:
first:
Facebook: Win
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: Linux
second:
enabled: 0
settings:
CPU: x86
data:
first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: x86_64
data:
first:
Standalone: LinuxUniversal
second:
enabled: 0
settings:
CPU: None
data:
first:
Standalone: OSXIntel
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: OSXIntel64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
data:
first:
Standalone: Win
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
iPhone: iOS
second:
enabled: 1
settings:
CompileFlags:
FrameworkDependencies:
data:
first:
tvOS: tvOS
second:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 15dcaa7927c1c34419f7c3726d5f02f1
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aace31274b316934493c40d4e697186f
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
#if __has_include(<AppCenterDistribute/MSACDistribute.h>)
#import <AppCenterDistribute/MSACDistribute.h>
#import <AppCenterDistribute/MSACDistributeDelegate.h>
#import <AppCenterDistribute/MSACReleaseDetails.h>
#else
#import "MSACDistribute.h"
#import "MSACDistributeDelegate.h"
#import "MSACReleaseDetails.h"
#endif
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 9b40802aff51de447b071db58dd9a1f6
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,105 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#if __has_include(<AppCenter/MSACServiceAbstract.h>)
#import <AppCenter/MSACServiceAbstract.h>
#else
#import "MSACServiceAbstract.h"
#endif
#if __has_include(<AppCenterDistribute/MSACDistributeDelegate.h>)
#import <AppCenterDistribute/MSACDistributeDelegate.h>
#else
#import "MSACDistributeDelegate.h"
#endif
NS_ASSUME_NONNULL_BEGIN
/**
* App Center Distribute service.
*/
NS_SWIFT_NAME(Distribute)
@interface MSACDistribute : MSACServiceAbstract
typedef NS_ENUM(NSInteger, MSACUpdateAction) {
/**
* Action to trigger update.
*/
MSACUpdateActionUpdate,
/**
* Action to postpone update.
*/
MSACUpdateActionPostpone
} NS_SWIFT_NAME(UpdateAction);
typedef NS_ENUM(NSInteger, MSACUpdateTrack) {
/**
* An update track for tracking public updates.
*/
MSACUpdateTrackPublic = 1,
/**
* An update track for tracking updates sent to private groups.
*/
MSACUpdateTrackPrivate = 2
} NS_SWIFT_NAME(UpdateTrack);
/**
* Update track.
*/
@property(class, nonatomic) MSACUpdateTrack updateTrack;
/**
* Distribute delegate
*
* @discussion If Distribute delegate is set and releaseAvailableWithDetails is returning <code>YES</code>, you must call
* notifyUpdateAction: with one of update actions to handle a release properly.
*
* @see releaseAvailableWithDetails:
* @see notifyUpdateAction:
*/
@property(class, nonatomic, weak) id<MSACDistributeDelegate> _Nullable delegate;
/**
* URL that is used for generic update related tasks.
*/
@property(class, nonatomic, copy, setter=setApiUrl:) NSString *apiUrl;
/**
* URL that is used to install update.
*
*/
@property(class, nonatomic, copy, setter=setInstallUrl:) NSString *installUrl;
/**
* Notify SDK with an update action to handle the release.
*/
+ (void)notifyUpdateAction:(MSACUpdateAction)action;
/**
* Process URL request for the service.
*
* @param url The url with parameters.
*
* @return `YES` if the URL is intended for App Center Distribute and your application, `NO` otherwise.
*
* @discussion Place this method call into your app delegate's openURL method.
*/
+ (BOOL)openURL:(NSURL *)url;
/**
* Disable checking the latest release of the application when the SDK starts.
*/
+ (void)disableAutomaticCheckForUpdate;
/**
* Check for the latest release using the selected update track.
*/
+ (void)checkForUpdate;
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: a7a2a7b8a566384458176de28d3aed75
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,50 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#if __has_include(<AppCenterDistribute/MSACReleaseDetails.h>)
#import <AppCenterDistribute/MSACReleaseDetails.h>
#else
#import "MSACReleaseDetails.h"
#endif
#import <AuthenticationServices/AuthenticationServices.h>
@class MSACDistribute;
NS_ASSUME_NONNULL_BEGIN
NS_SWIFT_NAME(DistributeDelegate)
@protocol MSACDistributeDelegate <NSObject>
@optional
/**
* Callback method that will be called whenever a new release is available for update.
*
* @param distribute The instance of MSACDistribute.
* @param details Release details for the update.
*
* @return Return YES if you want to take update control by overriding default update dialog, NO otherwise.
*
* @see [MSACDistribute notifyUpdateAction:]
*/
- (BOOL)distribute:(MSACDistribute *)distribute releaseAvailableWithDetails:(MSACReleaseDetails *)details;
/**
* Callback method that will be called whenever update check reports that there is no new release available for update.
*
* @param distribute The instance of MSACDistribute.
*/
- (void)distributeNoReleaseAvailable:(MSACDistribute *)distribute;
/**
* Callback method that will be called before the app is permanently closed for update.
* It is the right place to add any required clean ups.
*
* @param distribute The instance of MSACDistribute.
*/
- (void)distributeWillExitApp:(MSACDistribute *)distribute;
@end
NS_ASSUME_NONNULL_END
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e5395ac900386a6428fd9951b030da50
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,48 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#import <Foundation/Foundation.h>
@class MSACDistributionGroup;
/**
* Details of an uploaded release.
*/
NS_SWIFT_NAME(ReleaseDetails)
@interface MSACReleaseDetails : NSObject
/**
* ID identifying this unique release.
*/
@property(nonatomic, copy) NSNumber *id;
/**
* The release's version
* For iOS: CFBundleVersion from info.plist
* For Android: android:versionCode from AndroidManifest.xml
*/
@property(nonatomic, copy) NSString *version;
/**
* The release's short version.
* For iOS: CFBundleShortVersionString from info.plist
* For Android: android:versionName from AndroidManifest.xml
*/
@property(nonatomic, copy) NSString *shortVersion;
/**
* The release's release notes.
*/
@property(nonatomic, copy) NSString *releaseNotes;
/**
* The flag that indicates whether the release is a mandatory update or not.
*/
@property(nonatomic, getter=isMandatoryUpdate, assign) BOOL mandatoryUpdate NS_SWIFT_NAME(mandatoryUpdate);
/**
* The URL that hosts the release notes for this release.
*/
@property(nonatomic, strong) NSURL *releaseNotesUrl;
@end
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: f277cbd53e853f04594a5ab1c79d8ce5
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 50a2109b056ee1140a064a3c464b2ee8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 66c93b5842a9dab4c9fa89a0973aaebd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,11 @@
framework module AppCenterDistribute {
umbrella header "AppCenterDistribute.h"
export *
module * { export * }
link framework "Foundation"
link framework "SafariServices"
link framework "UIKit"
link framework "AuthenticationServices"
}
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8f2c04ddfbc43264298c1dd6d520875b
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,34 @@
fileFormatVersion: 2
guid: 442243234114d4918b5681a28da379f9
folderAsset: yes
timeCreated: 1497997859
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 33ffe2b20b168cd4682cdc41df734189
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: f66fe5a752d34a04ab55c945046cf2e8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: abbb3c660e5351346a94765627a00b2f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 3fa7371b5f5e10f4a831f576d0acb61e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 09c1c7a107b415942a84e23c34f4456e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 36de9e44782a15e42bc128779d05fe8a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d0dfca790bf2f0d44bb21636eacb130e
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ee07d1a7031754e458390b5b01283ca5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 8107addc07a0725458882105f7c9dab3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 61484b9983f34cb4ab3d004b21fe4cc8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 34b08c64446eb3c46a25a81c5015502f
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 68b5dfdefc95dea4881461da70df315b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c8e7b5f576fbf8940b952b7e0b587470
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9b3f4285819e163408650d625a997184
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 5b78105bf45c76644b1bf64ec9b59a9c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5782da2decbac044a83458f75e1379dd
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 1fa533fd059f6414b853d972e39cdebf
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9a49e96398d68634b87eab29443f1ab0
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6c64f2d416789b542badc11558995bfa
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: fb0c85fcc6e4af54196bd08df6398ee8
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: cd1f86aa6693aee4bbecb00cd30bada8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 0546eeb612b64344fb6d6781fbf75203
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 65ea5b4544eb68d48b5b1d356c5eb325
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 5e0e5063f07056d43a2949fa998f89e2
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d36f58b8514e46c49be1bbe9a50c283d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e78962e43cdb30241964375638064a2b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: e555b83864c634d42a1394fd77cc1a9d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 35b0a47af8e5a9242aad7f733f47f55a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: c71b60320eaed094fa8f263a8c219952
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#ifndef DISTRIBUTE_DELEGATE_H
#define DISTRIBUTE_DELEGATE_H
#import <AppCenterDistribute/AppCenterDistribute.h>
typedef bool (__cdecl *ReleaseAvailableFunction)(MSACReleaseDetails*);
typedef void (__cdecl *WillExitAppFunction)();
typedef void (__cdecl *NoReleaseAvailableFunction)();
@interface UnityDistributeDelegate : NSObject<MSACDistributeDelegate>
- (BOOL)distribute:(MSACDistribute *)distribute releaseAvailableWithDetails:(MSACReleaseDetails *)details;
- (void)distributeNoReleaseAvailable:(MSACDistribute *)distribute;
- (void)distributeWillExitApp:(MSACDistribute *)distribute;
- (void)setReleaseAvailableImplementation:(ReleaseAvailableFunction)implementation;
- (void)setNoReleaseAvailableImplementation:(NoReleaseAvailableFunction)implementation;
- (void)setWillExitAppImplementation:(WillExitAppFunction)implementation;
- (void)replayReleaseAvailable;
+ (instancetype) sharedInstance;
@end
#endif
@@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: f38534402c1e845c38596a49a6414942
timeCreated: 1499465049
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,100 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#import "DistributeDelegate.h"
#import <Foundation/Foundation.h>
@interface UnityDistributeDelegate ()
@property MSACReleaseDetails *unprocessedDetails;
@property NSObject *lockObject;
@property ReleaseAvailableFunction releaseAvailableHandler;
@property WillExitAppFunction willExitAppHandler;
@property NoReleaseAvailableFunction noReleaseAvailableHandler;
@end
@implementation UnityDistributeDelegate
+ (instancetype)sharedInstance {
static UnityDistributeDelegate *sharedInstance = nil;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
if (sharedInstance == nil) {
sharedInstance = [[self alloc] init];
}
});
return sharedInstance;
}
- (instancetype)init {
if ((self = [super init])) {
_lockObject = [NSObject new];
_unprocessedDetails = nil;
}
return self;
}
- (void)setReleaseAvailableImplementation:(ReleaseAvailableFunction)implementation {
@synchronized (_lockObject) {
_releaseAvailableHandler = implementation;
}
}
- (void)setWillExitAppImplementation:(WillExitAppFunction)implementation {
@synchronized (_lockObject) {
_willExitAppHandler = implementation;
}
}
- (void)setNoReleaseAvailableImplementation:(NoReleaseAvailableFunction)implementation {
@synchronized (_lockObject) {
_noReleaseAvailableHandler = implementation;
}
}
- (BOOL)distribute:(MSACDistribute *)distribute releaseAvailableWithDetails:(MSACReleaseDetails *)details {
ReleaseAvailableFunction handlerCopy = nil;
@synchronized (_lockObject) {
handlerCopy = _releaseAvailableHandler;
if (handlerCopy) {
return handlerCopy(details);
}
return YES;
}
}
- (void) distributeWillExitApp:(MSACDistribute *)distribute {
WillExitAppFunction handlerCopy = nil;
@synchronized (_lockObject) {
handlerCopy = _willExitAppHandler;
}
if (handlerCopy) {
handlerCopy();
}
}
- (void)replayReleaseAvailable {
ReleaseAvailableFunction handlerCopy = nil;
MSACReleaseDetails *unprocessedCopy = _unprocessedDetails;
@synchronized (_lockObject) {
unprocessedCopy = nil;
handlerCopy = _releaseAvailableHandler;
}
if (unprocessedCopy && handlerCopy) {
handlerCopy(unprocessedCopy);
}
}
- (void)distributeNoReleaseAvailable:(MSACDistribute *)distribute {
NoReleaseAvailableFunction handlerCopy = nil;
@synchronized (_lockObject) {
handlerCopy = _noReleaseAvailableHandler;
if (handlerCopy) {
handlerCopy();
}
return;
}
}
@end
@@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: c0df9191b86ce4d75afa6d112ec7ccc7
timeCreated: 1504046607
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,24 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#ifndef DISTRIBUTE_UNITY_H
#define DISTRIBUTE_UNITY_H
#import <AppCenterDistribute/AppCenterDistribute.h>
#import "DistributeDelegate.h"
extern "C" void* appcenter_unity_distribute_get_type();
extern "C" void appcenter_unity_distribute_set_enabled(bool isEnabled);
extern "C" bool appcenter_unity_distribute_is_enabled();
extern "C" void appcenter_unity_distribute_set_install_url(char* installUrl);
extern "C" void appcenter_unity_distribute_set_api_url(char* apiUrl);
extern "C" void appcenter_unity_distribute_notify_update_action(int updateAction);
extern "C" void appcenter_unity_distribute_replay_release_available();
extern "C" void appcenter_unity_distribute_set_release_available_impl(ReleaseAvailableFunction handler);
extern "C" void appcenter_unity_distribute_set_will_exit_app_impl(WillExitAppFunction handler);
extern "C" void appcenter_unity_distribute_set_no_release_available_impl(NoReleaseAvailableFunction handler);
extern "C" void appcenter_unity_distribute_set_delegate();
extern "C" void appcenter_unity_distribute_check_for_update();
extern "C" void appcenter_unity_start_distribute();
#endif
@@ -0,0 +1,140 @@
fileFormatVersion: 2
guid: cb32484b4ca924ee7a1f0e8121baa87a
timeCreated: 1499463070
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
'': Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 1
Exclude Linux: 1
Exclude Linux64: 1
Exclude LinuxUniversal: 1
Exclude OSXIntel: 1
Exclude OSXIntel64: 1
Exclude OSXUniversal: 1
Exclude Win: 1
Exclude Win64: 1
Exclude iOS: 0
Exclude tvOS: 1
data:
first:
Android: Android
second:
enabled: 0
settings:
CPU: ARMv7
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
data:
first:
Facebook: Win
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Facebook: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: Linux
second:
enabled: 0
settings:
CPU: x86
data:
first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: x86_64
data:
first:
Standalone: LinuxUniversal
second:
enabled: 0
settings:
CPU: None
data:
first:
Standalone: OSXIntel
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: OSXIntel64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
data:
first:
Standalone: Win
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: AnyCPU
data:
first:
iPhone: iOS
second:
enabled: 1
settings:
CompileFlags:
FrameworkDependencies:
data:
first:
tvOS: tvOS
second:
enabled: 0
settings:
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,72 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#import "DistributeUnity.h"
#import <AppCenter/MSACAppCenter.h>
#import "DistributeDelegate.h"
#import <Foundation/Foundation.h>
void* appcenter_unity_distribute_get_type()
{
return (void *)CFBridgingRetain([MSACDistribute class]);
}
void appcenter_unity_distribute_set_enabled(bool isEnabled)
{
[MSACDistribute setEnabled:isEnabled];
}
bool appcenter_unity_distribute_is_enabled()
{
return [MSACDistribute isEnabled];
}
void appcenter_unity_distribute_check_for_update()
{
[MSACDistribute checkForUpdate];
}
void appcenter_unity_distribute_set_install_url(char* installUrl)
{
[MSACDistribute setInstallUrl:[NSString stringWithUTF8String:installUrl]];
}
void appcenter_unity_distribute_set_api_url(char* apiUrl)
{
[MSACDistribute setApiUrl:[NSString stringWithUTF8String:apiUrl]];
}
void appcenter_unity_distribute_notify_update_action(int updateAction)
{
[MSACDistribute notifyUpdateAction:(MSACUpdateAction)updateAction];
}
void appcenter_unity_distribute_set_release_available_impl(ReleaseAvailableFunction function)
{
[[UnityDistributeDelegate sharedInstance] setReleaseAvailableImplementation:function];
}
void appcenter_unity_distribute_set_will_exit_app_impl(WillExitAppFunction function)
{
[[UnityDistributeDelegate sharedInstance] setWillExitAppImplementation:function];
}
void appcenter_unity_distribute_set_no_release_available_impl(NoReleaseAvailableFunction function)
{
[[UnityDistributeDelegate sharedInstance] setNoReleaseAvailableImplementation:function];
}
void appcenter_unity_start_distribute()
{
[MSACAppCenter startService:MSACDistribute.class];
}
void appcenter_unity_distribute_replay_release_available()
{
[[UnityDistributeDelegate sharedInstance] replayReleaseAvailable];
}
void appcenter_unity_distribute_set_delegate()
{
[MSACDistribute setDelegate:[UnityDistributeDelegate sharedInstance]];
}
@@ -0,0 +1,39 @@
fileFormatVersion: 2
guid: fe70803b20f3846b9ba6b77d796683d6
timeCreated: 1499463073
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
data:
first:
tvOS: tvOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,12 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#import <AppCenterDistribute/AppCenterDistribute.h>
extern "C" int appcenter_unity_release_details_get_id(MSACReleaseDetails* details);
extern "C" const char* appcenter_unity_release_details_get_version(MSACReleaseDetails* details);
extern "C" const char* appcenter_unity_release_details_get_short_version(MSACReleaseDetails* details);
extern "C" const char* appcenter_unity_release_details_get_release_notes(MSACReleaseDetails* details);
extern "C" bool appcenter_unity_release_details_get_mandatory_update(MSACReleaseDetails* details);
extern "C" const char* appcenter_unity_release_details_get_url(MSACReleaseDetails* details);
@@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: 357280037bb664605872391e0c45e02c
timeCreated: 1499463762
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,38 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#import "ReleaseDetails.h"
#import "../Core/Utility/NSStringHelper.h"
#import <AppCenterDistribute/AppCenterDistribute.h>
#import <Foundation/Foundation.h>
int appcenter_unity_release_details_get_id(MSACReleaseDetails* details)
{
return [[details id] intValue];
}
const char* appcenter_unity_release_details_get_version(MSACReleaseDetails* details)
{
return appcenter_unity_ns_string_to_cstr([details version]);
}
const char* appcenter_unity_release_details_get_short_version(MSACReleaseDetails* details)
{
return appcenter_unity_ns_string_to_cstr([details shortVersion]);
}
const char* appcenter_unity_release_details_get_release_notes(MSACReleaseDetails* details)
{
return appcenter_unity_ns_string_to_cstr([details releaseNotes]);
}
bool appcenter_unity_release_details_get_mandatory_update(MSACReleaseDetails* details)
{
return [details isMandatoryUpdate];
}
const char* appcenter_unity_release_details_get_url(MSACReleaseDetails* details)
{
return appcenter_unity_ns_string_to_cstr([[details releaseNotesUrl] absoluteString]);
}
@@ -0,0 +1,33 @@
fileFormatVersion: 2
guid: daa70cacdfe5a4eda986642c3e744ec8
timeCreated: 1499463762
licenseType: Pro
PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
data:
first:
Any:
second:
enabled: 0
settings: {}
data:
first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
data:
first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant: