diff --git a/DemoApp/ios/DemoApp/AppDelegate.m b/DemoApp/ios/DemoApp/AppDelegate.m index 80c1c48b5..634375f62 100644 --- a/DemoApp/ios/DemoApp/AppDelegate.m +++ b/DemoApp/ios/DemoApp/AppDelegate.m @@ -25,7 +25,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( [AppCenterReactNativePush register]; // Initialize AppCenter push - [AppCenterReactNativeCrashes registerWithAutomaticProcessing]; // Initialize AppCenter crashes + [AppCenterReactNativeCrashes register]; // Initialize AppCenter crashes [AppCenterReactNativeAnalytics registerWithInitiallyEnabled:true]; // Initialize AppCenter analytics diff --git a/DemoApp/ios/Podfile b/DemoApp/ios/Podfile index b2443b608..9a1cf43f2 100644 --- a/DemoApp/ios/Podfile +++ b/DemoApp/ios/Podfile @@ -9,10 +9,10 @@ target 'DemoApp' do # use_frameworks! # Pods for DemoApp - pod 'AppCenter/Push', '~> 1.3.0' - pod 'AppCenter/Crashes', '~> 1.3.0' - pod 'AppCenter/Analytics', '~> 1.3.0' - pod 'AppCenterReactNativeShared', '~> 1.2.0' + pod 'AppCenter/Push', '~> 1.4.0' + pod 'AppCenter/Crashes', '~> 1.4.0' + pod 'AppCenter/Analytics', '~> 1.4.0' + pod 'AppCenterReactNativeShared', '~> 1.3.0' platform :ios, '9.0' end diff --git a/DemoApp/ios/Podfile.lock b/DemoApp/ios/Podfile.lock index 1162c319d..8b786e9dc 100644 --- a/DemoApp/ios/Podfile.lock +++ b/DemoApp/ios/Podfile.lock @@ -1,24 +1,24 @@ PODS: - - AppCenter/Analytics (1.3.0): + - AppCenter/Analytics (1.4.0): - AppCenter/Core - - AppCenter/Core (1.3.0) - - AppCenter/Crashes (1.3.0): + - AppCenter/Core (1.4.0) + - AppCenter/Crashes (1.4.0): - AppCenter/Core - - AppCenter/Push (1.3.0): + - AppCenter/Push (1.4.0): - AppCenter/Core - - AppCenterReactNativeShared (1.2.0): - - AppCenter/Core (= 1.3.0) + - AppCenterReactNativeShared (1.3.0): + - AppCenter/Core (= 1.4.0) DEPENDENCIES: - - AppCenter/Analytics (~> 1.3.0) - - AppCenter/Crashes (~> 1.3.0) - - AppCenter/Push (~> 1.3.0) - - AppCenterReactNativeShared (~> 1.2.0) + - AppCenter/Analytics (~> 1.4.0) + - AppCenter/Crashes (~> 1.4.0) + - AppCenter/Push (~> 1.4.0) + - AppCenterReactNativeShared (~> 1.3.0) SPEC CHECKSUMS: - AppCenter: 77679d75cbb6e5327cb849d2988b57d9cb864dcb - AppCenterReactNativeShared: 393e08220108e51ee36d654622911a6faadc8632 + AppCenter: 2f5890b60944971b8c3767269a9d693205a91fef + AppCenterReactNativeShared: bbdb651319f9b03e40262c6c96854ecb37dd0719 -PODFILE CHECKSUM: f1ff4b5f9efd9d401cc0359f6c3d676af1df08e8 +PODFILE CHECKSUM: e69ed48dc028214ab79ef136cd2be13d7edb1fca -COCOAPODS: 1.4.0 +COCOAPODS: 1.3.1 diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter index 137490d45..b64c7ede6 100644 Binary files a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter and b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/AppCenter differ diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSConstants.h b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSConstants.h index 6b5839e35..054edec9d 100644 --- a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSConstants.h +++ b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSConstants.h @@ -60,5 +60,6 @@ static short const kMSPriorityCount = MSPriorityHigh + 1; */ typedef NS_ENUM(NSInteger, MSInitializationPriority) { MSInitializationPriorityDefault = 500, + MSInitializationPriorityHigh = 750, MSInitializationPriorityMax = 999 }; diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSLog.h b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSLog.h index a40204f5c..3842bae3b 100644 --- a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSLog.h +++ b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenter.framework/Headers/MSLog.h @@ -20,6 +20,11 @@ */ @property(nonatomic, copy) NSString *sid; +/** + * Optional distribution group ID value. + */ +@property(nonatomic, copy) NSString *distributionGroupId; + /** * Device properties associated to this log. */ diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAnalytics.framework/AppCenterAnalytics b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAnalytics.framework/AppCenterAnalytics index 41a333ad7..876b040f0 100644 Binary files a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAnalytics.framework/AppCenterAnalytics and b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterAnalytics.framework/AppCenterAnalytics differ diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/AppCenterCrashes b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/AppCenterCrashes index beed2ff3a..02f8a3df5 100644 Binary files a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/AppCenterCrashes and b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/AppCenterCrashes differ diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/Headers/MSCrashes.h b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/Headers/MSCrashes.h index ee4ea67e8..421113d99 100644 --- a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/Headers/MSCrashes.h +++ b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterCrashes.framework/Headers/MSCrashes.h @@ -13,6 +13,7 @@ typedef BOOL (^MSUserConfirmationHandler)(NSArray *_Nonnull err * Error Logging status. */ typedef NS_ENUM(NSUInteger, MSErrorLogSetting) { + /** * Crash reporting is disabled. */ @@ -30,19 +31,22 @@ typedef NS_ENUM(NSUInteger, MSErrorLogSetting) { }; /** - * Crash Manager alert user input + * Crash Manager alert user input. */ typedef NS_ENUM(NSUInteger, MSUserConfirmation) { + /** - * User chose not to send the crash report + * User chose not to send the crash report. */ MSUserConfirmationDontSend = 0, + /** - * User wants the crash report to be sent + * User wants the crash report to be sent. */ MSUserConfirmationSend = 1, + /** - * User wants to send all error logs + * User wants to send all error logs. */ MSUserConfirmationAlways = 2 }; diff --git a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterPush.framework/AppCenterPush b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterPush.framework/AppCenterPush index 6123a1e9a..9c06beed0 100644 Binary files a/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterPush.framework/AppCenterPush and b/DemoApp/ios/Pods/AppCenter/AppCenter-SDK-Apple/iOS/AppCenterPush.framework/AppCenterPush differ diff --git a/DemoApp/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared/AppCenterReactNativeShared.framework/AppCenterReactNativeShared b/DemoApp/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared/AppCenterReactNativeShared.framework/AppCenterReactNativeShared index f7451c566..0be516567 100644 Binary files a/DemoApp/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared/AppCenterReactNativeShared.framework/AppCenterReactNativeShared and b/DemoApp/ios/Pods/AppCenterReactNativeShared/AppCenterReactNativeShared/AppCenterReactNativeShared.framework/AppCenterReactNativeShared differ diff --git a/DemoApp/ios/Pods/Manifest.lock b/DemoApp/ios/Pods/Manifest.lock index 1162c319d..8b786e9dc 100644 --- a/DemoApp/ios/Pods/Manifest.lock +++ b/DemoApp/ios/Pods/Manifest.lock @@ -1,24 +1,24 @@ PODS: - - AppCenter/Analytics (1.3.0): + - AppCenter/Analytics (1.4.0): - AppCenter/Core - - AppCenter/Core (1.3.0) - - AppCenter/Crashes (1.3.0): + - AppCenter/Core (1.4.0) + - AppCenter/Crashes (1.4.0): - AppCenter/Core - - AppCenter/Push (1.3.0): + - AppCenter/Push (1.4.0): - AppCenter/Core - - AppCenterReactNativeShared (1.2.0): - - AppCenter/Core (= 1.3.0) + - AppCenterReactNativeShared (1.3.0): + - AppCenter/Core (= 1.4.0) DEPENDENCIES: - - AppCenter/Analytics (~> 1.3.0) - - AppCenter/Crashes (~> 1.3.0) - - AppCenter/Push (~> 1.3.0) - - AppCenterReactNativeShared (~> 1.2.0) + - AppCenter/Analytics (~> 1.4.0) + - AppCenter/Crashes (~> 1.4.0) + - AppCenter/Push (~> 1.4.0) + - AppCenterReactNativeShared (~> 1.3.0) SPEC CHECKSUMS: - AppCenter: 77679d75cbb6e5327cb849d2988b57d9cb864dcb - AppCenterReactNativeShared: 393e08220108e51ee36d654622911a6faadc8632 + AppCenter: 2f5890b60944971b8c3767269a9d693205a91fef + AppCenterReactNativeShared: bbdb651319f9b03e40262c6c96854ecb37dd0719 -PODFILE CHECKSUM: f1ff4b5f9efd9d401cc0359f6c3d676af1df08e8 +PODFILE CHECKSUM: e69ed48dc028214ab79ef136cd2be13d7edb1fca -COCOAPODS: 1.4.0 +COCOAPODS: 1.3.1 diff --git a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh index 881cbaed3..88dd53799 100755 --- a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh +++ b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp-frameworks.sh @@ -6,14 +6,10 @@ mkdir -p "${CONFIGURATION_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}" SWIFT_STDLIB_PATH="${DT_TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" -# Used as a return value for each invocation of `strip_invalid_archs` function. -STRIP_BINARY_RETVAL=0 - # This protects against multiple targets copying the same framework dependency at the same time. The solution # was originally proposed here: https://lists.samba.org/archive/rsync/2008-February/020158.html RSYNC_PROTECT_TMP_FILES=(--filter "P .*.??????") -# Copies and strips a vendored framework install_framework() { if [ -r "${BUILT_PRODUCTS_DIR}/$1" ]; then @@ -62,31 +58,12 @@ install_framework() fi } -# Copies and strips a vendored dSYM +# Copies the dSYM of a vendored framework install_dsym() { local source="$1" if [ -r "$source" ]; then - # Copy the dSYM into a the targets temp dir. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DERIVED_FILES_DIR}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DERIVED_FILES_DIR}" - - local basename - basename="$(basename -s .framework.dSYM "$source")" - binary="${DERIVED_FILES_DIR}/${basename}.framework.dSYM/Contents/Resources/DWARF/${basename}" - - # Strip invalid architectures so "fat" simulator / device frameworks work on device - if [[ "$(file "$binary")" == *"Mach-O dSYM companion"* ]]; then - strip_invalid_archs "$binary" - fi - - if [[ $STRIP_BINARY_RETVAL == 1 ]]; then - # Move the stripped file into its final destination. - echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${DERIVED_FILES_DIR}/${basename}.framework.dSYM\" \"${DWARF_DSYM_FOLDER_PATH}\"" - rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${DERIVED_FILES_DIR}/${basename}.framework.dSYM" "${DWARF_DSYM_FOLDER_PATH}" - else - # The dSYM was not stripped at all, in this case touch a fake folder so the input/output paths from Xcode do not reexecute this script because the file is missing. - touch "${DWARF_DSYM_FOLDER_PATH}/${basename}.framework.dSYM" - fi + echo "rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter \"- CVS/\" --filter \"- .svn/\" --filter \"- .git/\" --filter \"- .hg/\" --filter \"- Headers\" --filter \"- PrivateHeaders\" --filter \"- Modules\" \"${source}\" \"${DWARF_DSYM_FOLDER_PATH}\"" + rsync --delete -av "${RSYNC_PROTECT_TMP_FILES[@]}" --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "${source}" "${DWARF_DSYM_FOLDER_PATH}" fi } @@ -108,18 +85,10 @@ code_sign_if_enabled() { # Strip invalid architectures strip_invalid_archs() { binary="$1" - # Get architectures for current target binary - binary_archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | awk '{$1=$1;print}' | rev)" - # Intersect them with the architectures we are building for - intersected_archs="$(echo ${ARCHS[@]} ${binary_archs[@]} | tr ' ' '\n' | sort | uniq -d)" - # If there are no archs supported by this binary then warn the user - if [[ -z "$intersected_archs" ]]; then - echo "warning: [CP] Vendored binary '$binary' contains architectures ($binary_archs) none of which match the current build architectures ($ARCHS)." - STRIP_BINARY_RETVAL=0 - return - fi + # Get architectures for current file + archs="$(lipo -info "$binary" | rev | cut -d ':' -f1 | rev)" stripped="" - for arch in $binary_archs; do + for arch in $archs; do if ! [[ "${ARCHS}" == *"$arch"* ]]; then # Strip non-valid architectures in-place lipo -remove "$arch" -output "$binary" "$binary" || exit 1 @@ -129,7 +98,6 @@ strip_invalid_archs() { if [[ "$stripped" ]]; then echo "Stripped $binary of architectures:$stripped" fi - STRIP_BINARY_RETVAL=1 } if [ "${COCOAPODS_PARALLEL_CODE_SIGN}" == "true" ]; then diff --git a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig index c4ed51291..1b538a1e5 100644 --- a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig +++ b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.debug.xcconfig @@ -3,7 +3,7 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AppCenter" "${PODS_ROOT}/Headers/Public/AppCenterReactNativeShared" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AppCenter" -isystem "${PODS_ROOT}/Headers/Public/AppCenterReactNativeShared" OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -l"sqlite3" -l"z" -framework "AppCenter" -framework "AppCenterAnalytics" -framework "AppCenterCrashes" -framework "AppCenterPush" -framework "AppCenterReactNativeShared" -framework "CoreTelephony" -framework "Foundation" -framework "SystemConfiguration" -framework "UIKit" -weak_framework "UserNotifications" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods diff --git a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig index c4ed51291..1b538a1e5 100644 --- a/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig +++ b/DemoApp/ios/Pods/Target Support Files/Pods-DemoApp/Pods-DemoApp.release.xcconfig @@ -3,7 +3,7 @@ GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1 HEADER_SEARCH_PATHS = $(inherited) "${PODS_ROOT}/Headers/Public" "${PODS_ROOT}/Headers/Public/AppCenter" "${PODS_ROOT}/Headers/Public/AppCenterReactNativeShared" OTHER_CFLAGS = $(inherited) -isystem "${PODS_ROOT}/Headers/Public" -isystem "${PODS_ROOT}/Headers/Public/AppCenter" -isystem "${PODS_ROOT}/Headers/Public/AppCenterReactNativeShared" OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -l"sqlite3" -l"z" -framework "AppCenter" -framework "AppCenterAnalytics" -framework "AppCenterCrashes" -framework "AppCenterPush" -framework "AppCenterReactNativeShared" -framework "CoreTelephony" -framework "Foundation" -framework "SystemConfiguration" -framework "UIKit" -weak_framework "UserNotifications" -PODS_BUILD_DIR = ${BUILD_DIR} -PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) +PODS_BUILD_DIR = $BUILD_DIR +PODS_CONFIGURATION_BUILD_DIR = $PODS_BUILD_DIR/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME) PODS_PODFILE_DIR_PATH = ${SRCROOT}/. PODS_ROOT = ${SRCROOT}/Pods diff --git a/DemoApp/package.json b/DemoApp/package.json index 40d74a1d1..3a8fd8ab8 100644 --- a/DemoApp/package.json +++ b/DemoApp/package.json @@ -8,10 +8,10 @@ "lint": "./node_modules/.bin/eslint ." }, "dependencies": { - "appcenter": "^1.2.0", - "appcenter-analytics": "^1.2.0", - "appcenter-crashes": "^1.2.0", - "appcenter-push": "^1.2.0", + "appcenter": "^1.3.0", + "appcenter-analytics": "^1.3.0", + "appcenter-crashes": "^1.3.0", + "appcenter-push": "^1.3.0", "react": "16.0.0-alpha.12", "react-native": "^0.53.3", "react-native-dialog-component": "^0.2.17",