Skip to content

Commit

Permalink
Merge pull request #168 from adobe/staging
Browse files Browse the repository at this point in the history
Staging to main for 5.0.0 release
  • Loading branch information
sbenedicadb committed Mar 20, 2024
2 parents 0bf1428 + dfea8c2 commit 507f005
Show file tree
Hide file tree
Showing 21 changed files with 550 additions and 428 deletions.
60 changes: 25 additions & 35 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: 2.1

orbs:
codecov: codecov/codecov@3.2.5
# codecov: codecov/codecov@3.3.0
macos: circleci/macos@2

workflows:
Expand Down Expand Up @@ -38,38 +38,26 @@ commands:
paths:
- vendor/bundle

# restore pods related caches
- restore_cache:
name: Restore CocoaPods Cache
keys:
- cocoapods-cache-v5-{{ arch }}-{{ .Branch }}-{{ checksum "Podfile.lock" }}
- cocoapods-cache-v5-{{ arch }}-{{ .Branch }}
- cocoapods-cache-v5

# install CocoaPods - using default CocoaPods version, not the bundle
- run:
name: Repo Update & Install CocoaPods
command: make ci-pod-install

# save pods related files
- save_cache:
name: Save CocoaPods Cache
key: cocoapods-cache-v5-{{ arch }}-{{ .Branch }}-{{ checksum "Podfile.lock" }}
paths:
- ./Pods
- ~/.cocoapods
- run:
name: Install xcodegen
command: brew install xcodegen

prestart_ios_simulator:
steps:
- macos/preboot-simulator:
platform: "iOS"
version: "16.1"
device: "iPhone 14"
version: "17.2"
device: "iPhone 15"

jobs:
validate-code:
macos:
xcode: 14.1.0 # Specify the Xcode version to use
xcode: 15.1.0 # Specify the Xcode version to use

steps:
- checkout
Expand All @@ -86,7 +74,7 @@ jobs:

test-ios:
macos:
xcode: 14.1.0 # Specify the Xcode version to use
xcode: 15.1.0 # Specify the Xcode version to use

steps:
- checkout
Expand All @@ -101,35 +89,37 @@ jobs:

# Code coverage upload using Codecov
# See options explanation here: https://docs.codecov.com/docs/codecov-uploader
- codecov/upload:
flags: aeptarget-ios-tests
upload_name: Coverage Report for AEPTarget iOS Tests
xtra_args: -c -v --xc --xp ./build/AEPTarget.xcresult
# - codecov/upload:
# flags: aeptarget-ios-tests
# upload_name: Coverage Report for AEPTarget iOS Tests
# xtra_args: -c -v --xc --xp ./build/AEPTarget.xcresult

test-spm-podspec-archive:
macos:
xcode: 14.1.0 # Specify the Xcode version to use
xcode: 15.0 # Specify the Xcode version to use

steps:
- checkout
- install_dependencies

# verify XCFramework archive builds
- run:
name: Build XCFramework
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
make archive
if [ "${CIRCLE_BRANCH}" == "main" ] || [ "${CIRCLE_BRANCH}" == "staging" ]; then
make ci-archive
fi
# verify podspec is valid
- run:
name: Test Podspec
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
make test-podspec
fi
# - run:
# name: Test Podspec
# command: |
# if [ "${CIRCLE_BRANCH}" == "main" ]; then
# make test-podspec
# fi
# verify SPM works
- run:
name: Test SPM
command: |
if [ "${CIRCLE_BRANCH}" == "main" ]; then
if [ "${CIRCLE_BRANCH}" == "main" ] || [ "${CIRCLE_BRANCH}" == "staging" ]; then
make test-SPM-integration
fi
fi
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tag:
description: 'tag/version'
required: true
default: '4.0.0'
default: '5.0.0'

action_tag:
description: 'create tag? ("no" to skip)'
Expand All @@ -20,21 +20,24 @@ on:

jobs:
release_target:
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: actions/checkout@v2
with:
ref: main
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.1'
xcode-version: '15.0.1'

- name: Install jq
run: brew install jq

- name: Install cocoapods
run: gem install cocoapods

- name: Install xcodegen
run: brew install xcodegen

- name: Check version in Podspec
run: |
set -eo pipefail
Expand Down Expand Up @@ -92,6 +95,7 @@ jobs:
if: ${{ github.event.inputs.release_AEPTarget == 'yes' }}
run: |
set -eo pipefail
pod trunk push AEPTarget.podspec --allow-warnings --synchronous --swift-version=5.1
pod lib lint AEPTarget.podspec --allow-warnings
pod trunk push AEPTarget.podspec --allow-warnings --synchronous
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

6 changes: 3 additions & 3 deletions AEPTarget.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "AEPTarget"
s.version = "4.0.4"
s.version = "5.0.0"
s.summary = "Experience Platform Target extension for Adobe Experience Platform Mobile SDK. Written and maintained by Adobe."
s.description = <<-DESC
The Experience Platform Target extension provides APIs that allow use of the Target product in the Adobe Experience Platform SDK.
Expand All @@ -10,10 +10,10 @@ Pod::Spec.new do |s|
s.author = "Adobe Experience Platform SDK Team"
s.source = { :git => "https://github.com/adobe/aepsdk-target-ios.git", :tag => s.version.to_s }

s.ios.deployment_target = '11.0'
s.ios.deployment_target = '12.0'
s.swift_version = '5.1'
s.pod_target_xcconfig = { 'BUILD_LIBRARY_FOR_DISTRIBUTION' => 'YES' }
s.dependency 'AEPCore', '>= 4.0.0', '< 5.0.0'
s.dependency 'AEPCore', '>= 5.0.0', '< 6.0.0'

s.source_files = 'AEPTarget/Sources/**/*.swift'

Expand Down
14 changes: 4 additions & 10 deletions AEPTarget.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,6 @@
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FKGEE875K4;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
PRODUCT_NAME = "$(TARGET_NAME)";
TVOS_DEPLOYMENT_TARGET = 10.0;
};
Expand All @@ -1031,7 +1030,6 @@
buildSettings = {
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FKGEE875K4;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
PRODUCT_NAME = "$(TARGET_NAME)";
TVOS_DEPLOYMENT_TARGET = 10.0;
};
Expand Down Expand Up @@ -1089,7 +1087,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1147,7 +1145,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
Expand All @@ -1172,13 +1170,12 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = AEPTarget/Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 4.0.4;
MARKETING_VERSION = 5.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.adobe.aep.target;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -1203,13 +1200,12 @@
DYLIB_INSTALL_NAME_BASE = "@rpath";
INFOPLIST_FILE = AEPTarget/Sources/Info.plist;
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 4.0.4;
MARKETING_VERSION = 5.0.0;
PRODUCT_BUNDLE_IDENTIFIER = com.adobe.aep.target;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand All @@ -1228,7 +1224,6 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FKGEE875K4;
INFOPLIST_FILE = AEPTarget/Tests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand All @@ -1249,7 +1244,6 @@
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = FKGEE875K4;
INFOPLIST_FILE = AEPTarget/Tests/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
Expand Down
2 changes: 2 additions & 0 deletions AEPTarget/Sources/Preview/TargetPreviewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ class TargetPreviewManager: PreviewManager {
}

message.dismiss()
state.previewButton?.show()
}
}

Expand Down Expand Up @@ -176,6 +177,7 @@ class TargetPreviewManager: PreviewManager {
return
}

state.previewButton?.dismiss()
state.fullscreenMessage = ServiceProvider.shared.uiService.createFullscreenMessage(payload: webViewHtml, listener: fullscreenMessageDelegate ?? self, isLocalImageUsed: false)
state.fullscreenMessage?.show()
}
Expand Down
2 changes: 1 addition & 1 deletion AEPTarget/Sources/TargetConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Foundation
enum TargetConstants {
static let EXTENSION_NAME = "com.adobe.module.target"
static let FRIENDLY_NAME = "Target"
static let EXTENSION_VERSION = "4.0.4"
static let EXTENSION_VERSION = "5.0.0"
static let DATASTORE_NAME = EXTENSION_NAME
static let DEFAULT_SESSION_TIMEOUT: Int = 30 * 60 // 30 mins
static let DELIVERY_API_URL_BASE = "https://%@/rest/v1/delivery/?client=%@&sessionId=%@"
Expand Down
1 change: 1 addition & 0 deletions AEPTarget/Sources/TargetRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
governing permissions and limitations under the License.
*/
import Foundation

@objc(AEPTargetRequestObject)
public class TargetRequest: NSObject, Codable {
@objc public let name: String
Expand Down
Loading

0 comments on commit 507f005

Please sign in to comment.