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,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: