Skip to content

Commit

Permalink
Upgrade to PowerAuthSDK 1.8.0 (#128)
Browse files Browse the repository at this point in the history
  • Loading branch information
kober32 authored Nov 24, 2023
1 parent 5ab04f7 commit 9deb64b
Show file tree
Hide file tree
Showing 21 changed files with 204 additions and 228 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,16 @@ on:
- master
- releases/*
pull_request:
schedule:
- cron: '25 6 * * *'

jobs:
build:
name: Build
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set proper xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'
run: sh ./scripts/xcodeselect.sh
- name: Building
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,19 @@ on:
jobs:
pod:
name: Pod Lib Lint
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set proper xcode version
run: sh ./scripts/xcodeselect.sh
- name: Lint
run: pod lib lint --allow-warnings
swift:
name: Swift Lint
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set proper xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'
- name: Lint
run: swiftlint --strict
run: sh ./scripts/swiftlint.sh
36 changes: 0 additions & 36 deletions .github/workflows/publish.yml

This file was deleted.

14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,25 @@ on:
- master
- releases/*
pull_request:
schedule:
- cron: '25 6 * * *'

jobs:
tests:
name: Tests
runs-on: macos-12
runs-on: macos-13
steps:
- name: Checkout the repo
uses: actions/checkout@v2
- name: Set proper xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '14.0'
run: sh ./scripts/xcodeselect.sh
- name: Runing Tests
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APP_KEY: ${{ secrets.TESTS_APP_KEY }}
APP_SECRET: ${{ secrets.TESTS_APP_SECRET }}
MASTER_SERVER_PUBLIC_KEY : ${{ secrets.TESTS_MASTER_SERVER_PUBLIC_KEY }}
SDK_CONFIG : ${{ secrets.TESTS_SDK_CONFIG }}
CL_URL: ${{ secrets.TESTS_CL_URL }}
CL_LGN: ${{ secrets.TESTS_CL_LGN }}
CL_PWD: ${{ secrets.TESTS_CL_PWD }}
CL_AID: ${{ secrets.TESTS_CL_AID }}
OP_URL: ${{ secrets.TESTS_OP_URL }}
ER_URL: ${{ secrets.TESTS_ER_URL }}
IN_URL: ${{ secrets.TESTS_IN_URL }}
run: ./scripts/test.sh -appkey "$APP_KEY" -appsecret "$APP_SECRET" -masterspk "$MASTER_SERVER_PUBLIC_KEY" -er "$ER_URL" -op "$OP_URL" -in "$IN_URL" -cl "$CL_URL" -clu "$CL_LGN" -clp "$CL_PWD" -cla "$CL_AID"
run: ./scripts/test.sh -destination "platform=iOS Simulator,OS=17.0.1,name=iPhone 15" -sdkconfig "$SDK_CONFIG" -er "$ER_URL" -op "$OP_URL" -in "$IN_URL" -cl "$CL_URL" -clu "$CL_LGN" -clp "$CL_PWD" -cla "$CL_AID"
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ Carthage

# test config file
WultraMobileTokenSDKTests/Configs/*.json

# swiftlint
swiftlint
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "wultra/networking-apple" "1.2.0"
github "wultra/networking-apple" "1.3.0"
6 changes: 3 additions & 3 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.7.6/PowerAuth2.json" "1.7.6"
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.7.6/PowerAuthCore.json" "1.7.6"
github "wultra/networking-apple" "1.2.0"
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.8.0/PowerAuth2.json" "1.8.0"
binary "https://raw.githubusercontent.com/wultra/powerauth-mobile-sdk-spm/1.8.0/PowerAuthCore.json" "1.8.0"
github "wultra/networking-apple" "1.3.0"
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.7
// swift-tools-version:5.9

import PackageDescription

Expand All @@ -11,8 +11,8 @@ let package = Package(
.library(name: "WultraMobileTokenSDK", targets: ["WultraMobileTokenSDK"])
],
dependencies: [
.package(url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.7.8")),
.package(url: "https://github.com/wultra/networking-apple.git", .upToNextMinor(from: "1.2.0"))
.package(url: "https://github.com/wultra/powerauth-mobile-sdk-spm.git", .upToNextMinor(from: "1.8.0")),
.package(url: "https://github.com/wultra/networking-apple.git", .upToNextMinor(from: "1.3.0"))
],
targets: [
.target(
Expand Down
8 changes: 4 additions & 4 deletions WultraMobileTokenSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'WultraMobileTokenSDK'
s.version = '1.5.2'
s.version = '1.8.0'
# Metadata
s.license = { :type => 'Apache License, Version 2.0', :file => 'LICENSE' }
s.summary = 'High level PowerAuth based library written in swift'
Expand All @@ -9,7 +9,7 @@ Pod::Spec.new do |s|
s.author = { 'Wultra s.r.o.' => '[email protected]' }
s.source = { :git => 'https://github.com/wultra/mtoken-sdk-ios.git', :tag => s.version }
# Deployment targets
s.swift_version = '5.7'
s.swift_version = '5.9'
s.ios.deployment_target = '12.0'

# Sources
Expand All @@ -18,8 +18,8 @@ Pod::Spec.new do |s|
# 'Common' subspec
s.subspec 'Common' do |sub|
sub.source_files = 'WultraMobileTokenSDK/Common/**/*.swift'
sub.dependency 'PowerAuth2', '~> 1.7.3'
sub.dependency 'WultraPowerAuthNetworking', '~> 1.2.0'
sub.dependency 'PowerAuth2', '~> 1.8.0'
sub.dependency 'WultraPowerAuthNetworking', '~> 1.3.0'
end

# 'Operations' subspec
Expand Down
120 changes: 4 additions & 116 deletions WultraMobileTokenSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -506,8 +506,9 @@
DCC5CC912449EE21004679AC /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = YES;
LastSwiftUpdateCheck = 1140;
LastUpgradeCheck = 1230;
LastUpgradeCheck = 1500;
ORGANIZATIONNAME = Wultra;
TargetAttributes = {
DC616232248508F8000DED17 = {
Expand Down Expand Up @@ -559,6 +560,7 @@
/* Begin PBXShellScriptBuildPhase section */
DCDA0A3128A6851400EDB6D4 /* Swift Lint */ = {
isa = PBXShellScriptBuildPhase;
alwaysOutOfDate = 1;
buildActionMask = 2147483647;
files = (
);
Expand All @@ -573,7 +575,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if ! [ -x \"$(command -v swiftlint)\" ]; then\n echo 'warning: swiftlint is not installed on this computer.' >&2\n exit 0\nfi\n\nswiftlint\n";
shellScript = "\"${PROJECT_DIR}/scripts/swiftlint.sh\" \"-ne\"\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -706,139 +708,25 @@
isa = XCBuildConfiguration;
baseConfigurationReference = DCC5CCA92449F2E1004679AC /* Debug.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Debug;
};
DCC5CCA12449EE21004679AC /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = DCC5CCAA2449F2ED004679AC /* Release.xcconfig */;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 13.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
VERSIONING_SYSTEM = "apple-generic";
VERSION_INFO_PREFIX = "";
};
name = Release;
};
DCC5CCA32449EE21004679AC /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
MARKETING_VERSION = 1.1.0;
PRODUCT_NAME = WultraMobileTokenSDK;
};
name = Debug;
};
DCC5CCA42449EE21004679AC /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
MARKETING_VERSION = 1.1.0;
PRODUCT_NAME = WultraMobileTokenSDK;
};
name = Release;
};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1230"
LastUpgradeVersion = "1500"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1230"
LastUpgradeVersion = "1500"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading

0 comments on commit 9deb64b

Please sign in to comment.