Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.0.3-beta release #320

Merged
merged 82 commits into from
Sep 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
9095db5
Removes Cocoapods as a package manager
mohssenfathi Feb 7, 2024
a35e086
Removing Carthage as a package manager
mohssenfathi Feb 7, 2024
7ae59da
Merge pull request #284 from mohssenfathi/remove-cocoapods
mohssenfathi Feb 15, 2024
bdb5104
Add support for SwiftPM
mohssenfathi Feb 12, 2024
7ea0bda
Removed NSObject inheretences
mohssenfathi Feb 22, 2024
0454485
Merge pull request #285 from mohssenfathi/spm
mohssenfathi Feb 27, 2024
bbb9c97
Implements UberAuth interface, sample app
mohssenfathi Feb 23, 2024
383e9df
Renamed oAuth error, removed unnecessary code
mohssenfathi Mar 11, 2024
8e3f826
Merge pull request #287 from mohssenfathi/uberauth-api
mohssenfathi Mar 11, 2024
6365f81
Adds CI to build and run tests on pull request
mohssenfathi Mar 13, 2024
6035c82
Adds support for Auth Code Grant Flow
mohssenfathi Mar 11, 2024
e9eead4
Merge pull request #290 from mohssenfathi/authorize-request
mohssenfathi Mar 18, 2024
61c130d
Merge pull request #289 from mohssenfathi/ci
mohssenfathi Mar 19, 2024
6ea67f1
Uses test credentials for AuthorizationCodeAuthProviderTests
mohssenfathi Mar 19, 2024
026087d
Merge pull request #292 from mohssenfathi/fix-auth-code-provider-tests
mohssenfathi Mar 19, 2024
03833c1
Native app authentication
mohssenfathi Mar 22, 2024
9e34f4a
Fixed typos
mohssenfathi Mar 22, 2024
109d6b2
Split app launching logic into separate functions
mohssenfathi Mar 28, 2024
24e4404
Increase test timeout
mohssenfathi Mar 28, 2024
fb26baf
Removing flakey test
mohssenfathi Mar 28, 2024
b1a8832
Merge pull request #293 from mohssenfathi/native-auth
mohssenfathi Mar 28, 2024
b117951
Implements prefill
mohssenfathi Mar 28, 2024
120892b
Merge branch '2.x' into par
mohssenfathi Mar 29, 2024
2359902
Merge pull request #294 from mohssenfathi/par
mohssenfathi Apr 2, 2024
fdebde6
Implement Token exchange request
mohssenfathi Apr 2, 2024
0fe1a31
Removes UITest target
mohssenfathi Apr 3, 2024
7562e00
Updates documentation
mohssenfathi Apr 5, 2024
97bbae3
Merge pull request #295 from mohssenfathi/token-exchange
mohssenfathi Apr 5, 2024
66ca09d
Adds Errors README
mohssenfathi Apr 5, 2024
097256a
Merge branch '2.x' into docs
mohssenfathi Apr 5, 2024
b4e1507
Merge pull request #296 from mohssenfathi/docs
mohssenfathi Apr 5, 2024
8e9c1d4
Adds README for Errors
mohssenfathi Apr 5, 2024
a9fa6fd
Merge pull request #297 from mohssenfathi/error-docs
mohssenfathi Apr 5, 2024
323d24f
Implements new TokenManager and KeychainUtility
mohssenfathi May 1, 2024
0d3f42b
Implements new UberButton and LoginButton
mohssenfathi May 1, 2024
1c373d8
TokenManager, AccessToken changes
mohssenfathi May 3, 2024
8f927ed
Merge pull request #298 from mohssenfathi/token-storage
mohssenfathi May 9, 2024
06e0dd5
Removes legacy TokenManager and AccessToken
mohssenfathi May 22, 2024
cd957c5
Fixed proj file
mohssenfathi May 23, 2024
6c5ad50
Moved accessGroup to the method level
mohssenfathi May 23, 2024
1586955
Updated tests for KeychainUtility access group changes
mohssenfathi May 23, 2024
e714397
Add scope support, fix TokenRequest
mohssenfathi May 24, 2024
4d4e46d
Merge pull request #299 from mohssenfathi/token-manager-migration
mohssenfathi May 28, 2024
6a9616b
Merge pull request #300 from mohssenfathi/2.x
mohssenfathi May 30, 2024
d180c97
Cleanup and relocate dependencies
mohssenfathi Jun 18, 2024
f3b79eb
Fixed tests
mohssenfathi Jun 24, 2024
a58533d
Merge pull request #301 from mohssenfathi/cleanup
mohssenfathi Jun 26, 2024
88ddd55
Cleanup SwiftSDK sample + UberRides testing
mohssenfathi Jun 26, 2024
cdb6394
Merge pull request #302 from mohssenfathi/uber-rides-testing
mohssenfathi Jun 26, 2024
60faf70
Adds Bundle utility
mohssenfathi Jul 1, 2024
5d6cf94
Merge pull request #304 from mohssenfathi/bundle-utility
mohssenfathi Jul 1, 2024
b8bb8f4
Limit code_challenge to shouldExchangeAuthCode only
mohssenfathi Jul 1, 2024
735c180
Merge pull request #305 from mohssenfathi/authorize-code-challenge
mohssenfathi Jul 1, 2024
cf70a70
Implement prompt for re-login/consent
mohssenfathi Jul 2, 2024
815673f
Merge pull request #308 from mohssenfathi/authorize-prompt
mohssenfathi Jul 2, 2024
fa41f92
Drop min OS version to iOS 14
mohssenfathi Jul 23, 2024
455f578
Merge pull request #309 from mohssenfathi/min-os
mohssenfathi Jul 23, 2024
b39135a
Consolidate UberRides and UberAuth configurations
mohssenfathi Aug 8, 2024
9799fc3
Remove legacy SwiftSDK sample app
mohssenfathi Aug 9, 2024
bb61e42
Merge pull request #310 from mohssenfathi/configuration-provider
mohssenfathi Aug 12, 2024
221a8fd
Updated tests
mohssenfathi Aug 13, 2024
d91ca25
Merge pull request #311 from mohssenfathi/remove-swift-sdk
mohssenfathi Aug 20, 2024
66a2a20
Remove UberButton_DEPRECATED
mohssenfathi Aug 26, 2024
2a76999
Make RideRequestButtonDelegate weak
mohssenfathi Aug 27, 2024
c4e92d6
Merge pull request #312 from mohssenfathi/uber-button
mohssenfathi Aug 27, 2024
f950fc9
Enable prompt parameter for native auth
mohssenfathi Aug 26, 2024
af5fd62
Merge pull request #313 from mohssenfathi/native-prompt
mohssenfathi Aug 27, 2024
8c8615f
Update file header licenses
mohssenfathi Aug 27, 2024
93a88d8
Merge pull request #314 from mohssenfathi/file-headers
mohssenfathi Aug 27, 2024
a371aaf
Logout API
mohssenfathi Sep 10, 2024
6dec2b6
Merge pull request #315 from mohssenfathi/logout
mohssenfathi Sep 12, 2024
b5790dd
Documentation
mohssenfathi Sep 10, 2024
b209c47
Change ApplicationLaunching method name
mohssenfathi Sep 12, 2024
464377d
Adds app icon
mohssenfathi Sep 12, 2024
17caf37
Reset Info.plist placeholders
mohssenfathi Sep 13, 2024
60d34ab
Merge pull request #316 from mohssenfathi/applicationlaunching-fix
mohssenfathi Sep 13, 2024
28276d0
Merge pull request #317 from mohssenfathi/app-icon
mohssenfathi Sep 13, 2024
ce00389
Merge pull request #318 from mohssenfathi/documentation
mohssenfathi Sep 13, 2024
197e926
Add migration guide for 2.0.0
mohssenfathi Sep 17, 2024
0d924e2
Added link in main readme
mohssenfathi Sep 17, 2024
1442b74
Fixed typo in migration guide
mohssenfathi Sep 18, 2024
a1fc6f0
Merge pull request #319 from mohssenfathi/2.0.0-migration-guide
mohssenfathi Sep 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
47 changes: 47 additions & 0 deletions .github/workflows/xcodebuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
pull_request:
branches: [ master, 2.x ]

jobs:
build:
name: Build and Test default scheme using any available iPhone simulator
runs-on: macos-14

defaults:
run:
working-directory: ./examples/UberSDK

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Default Scheme
run: |
scheme_list=$(xcodebuild -list -json | tr -d "\n")
default=$(echo $scheme_list | ruby -e "require 'json'; puts JSON.parse(STDIN.gets)['project']['targets'][0]")
echo $default | cat >default
echo Using default scheme: $default

- name: Build
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild build-for-testing -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"

- name: Test
env:
scheme: ${{ 'default' }}
platform: ${{ 'iOS Simulator' }}
run: |
# xcrun xctrace returns via stderr, not the expected stdout (see https://developer.apple.com/forums/thread/663959)
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}' | sed -e "s/ Simulator$//"`
if [ $scheme = default ]; then scheme=$(cat default); fi
if [ "`ls -A | grep -i \\.xcworkspace\$`" ]; then filetype_parameter="workspace" && file_to_build="`ls -A | grep -i \\.xcworkspace\$`"; else filetype_parameter="project" && file_to_build="`ls -A | grep -i \\.xcodeproj\$`"; fi
file_to_build=`echo $file_to_build | awk '{$1=$1;print}'`
xcodebuild test-without-building -scheme "$scheme" -"$filetype_parameter" "$file_to_build" -destination "platform=$platform,name=$device"
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.build/
build/
*.pbxuser
!default.pbxuser
Expand All @@ -23,5 +24,3 @@ xcuserdata/
*.xccheckout
DerivedData/
*~
Pods/
Carthage/
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>FILEHEADER</key>
<string>
//
// ___FILENAME___
// ___PACKAGENAME___
//
// Copyright © ___YEAR___ Uber Technologies, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in
// all copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.</string>
</dict>
</plist>
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

Empty file removed Cartfile
Empty file.
1 change: 0 additions & 1 deletion Cartfile.private

This file was deleted.

1 change: 0 additions & 1 deletion Cartfile.resolved

This file was deleted.

50 changes: 50 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "rides-ios-sdk",
defaultLocalization: "en",
platforms: [
.iOS(.v14)
],
products: [
.library(
name: "UberAuth",
targets: ["UberAuth"]
),
.library(
name: "UberRides",
targets: ["UberRides"]
),
.library(
name: "UberCore",
targets: ["UberCore"]
)
],
targets: [
.target(
name: "UberAuth",
dependencies: [
"UberCore"
],
resources: [
.process("Resources")
]
),
.target(
name: "UberCore",
resources: [
.process("Resources")
]
),
.target(
name: "UberRides",
dependencies: [
"UberAuth",
"UberCore",
]
)
]
)
19 changes: 0 additions & 19 deletions PodspecShared.rb

This file was deleted.

Loading
Loading