Skip to content

Commit

Permalink
Updated projects
Browse files Browse the repository at this point in the history
  • Loading branch information
ci-bot committed Oct 2, 2024
1 parent ca8ff33 commit 653a494
Show file tree
Hide file tree
Showing 214 changed files with 4,006 additions and 1,843 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# MacOS
.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
Expand Down Expand Up @@ -92,4 +89,4 @@ fastlane/test_output
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
iOSInjectionProject/
95 changes: 95 additions & 0 deletions BasicSample/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# MacOS
.DS_Store

# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

## App packaging
*.ipa
*.dSYM.zip
*.dSYM

## Playgrounds
timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
# Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
Pods/
Podfile.lock

#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "86B6D2992653D50500794170"
BuildableName = "Catalog.app"
BlueprintName = "Catalog"
ReferencedContainer = "container:Catalog.xcodeproj">
BuildableName = "BasicSample.app"
BlueprintName = "BasicSample"
ReferencedContainer = "container:BasicSample.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
Expand Down Expand Up @@ -45,9 +45,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "86B6D2992653D50500794170"
BuildableName = "Catalog.app"
BlueprintName = "Catalog"
ReferencedContainer = "container:Catalog.xcodeproj">
BuildableName = "BasicSample.app"
BlueprintName = "BasicSample"
ReferencedContainer = "container:BasicSample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
Expand All @@ -62,9 +62,9 @@
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "86B6D2992653D50500794170"
BuildableName = "Catalog.app"
BlueprintName = "Catalog"
ReferencedContainer = "container:Catalog.xcodeproj">
BuildableName = "BasicSample.app"
BlueprintName = "BasicSample"
ReferencedContainer = "container:BasicSample.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
Expand Down

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
@@ -1,6 +1,6 @@
//
// AppDelegate.swift
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/18/21.
//
Expand Down Expand Up @@ -41,4 +41,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}

func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
.portrait
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CatalogItem+Routing.swift
// Catalog
// BasicSampleItem+Routing.swift
// BasicSample
//
// Created by Pavel Kondrashkov on 5/19/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CatalogDataProvider.swift
// Catalog
// BasicSampleDataProvider.swift
// BasicSample
//
// Created by Pavel Kondrashkov on 5/18/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down Expand Up @@ -28,25 +28,25 @@ final class CatalogTableDataProvider {
MatchFacesRequestItem(),
DetectFacesItem(),
ImageQualityItem(),
PersonDatabaseItem(),
LivenessAttemptsCountItem(),
FaceCaptureCameraPositionItem(),
FaceCaptureHideTorchConfigurationItem(),
LivenessSkipOnboardingAndSuccessItem(),

LivenessSessionTagItem(),
FaceInitializationItem(),
FaceDeinitializationItem(),

LivenessUIConfigurationItem(),
FaceCaptureUIConfigurationItem(),
LivenessHintViewAppearanceItem(),
LivenessNotificationItem(),
FaceCaptureCloseTorchConfigurationItem(),
FaceCaptureHideTorchConfigurationItem(),
FaceCaptureHideNotificationItem(),
LivenessHintPositionItem(),
LivenessToolbarAppearanceItem(),
LivenessToolbarPositionItem(),
LivenessToolbarCustomButtonItem(),
LivenessToolbarCustomColors(),
LivenessLogoItem(),
FaceCaptureBackgroundColor(),
CustomUILayerItem(),

LocalizationHandlerItem(),
URLRequestInterceptorItem(),
VideoUploadingCompletionItem(),
]
}()

Expand Down Expand Up @@ -100,7 +100,7 @@ private extension CatalogTableDataProvider {
case .feature:
return "Feature Customization"
case .viewCustomization:
return "View Customization"
return "UI Customization"
case .other:
return "Other"
@unknown default:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// CatalogViewController.swift
// Catalog
// BasicSampleViewController.swift
// BasicSample
//
// Created by Pavel Kondrashkov on 5/18/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// UIColor+Hex.swift
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/21/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// UIColor+Palette.swift
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/21/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// UIView+Layout.swift
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/19/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ImagesPreviewViewController.swift
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/21/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down Expand Up @@ -64,7 +64,7 @@ final class ImagesPreviewViewController: UIViewController {
nextButton.trailingAnchor.constraint(equalTo: self.view.trailingAnchor, constant: -40),
])

nextButton.isHidden = images.isEmpty
nextButton.isHidden = images.count < 2
}

override func viewDidLoad() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ImageQualityResultsViewController.swift
// Catalog
// BasicSample
//
// Created by Deposhe on 31.08.22.
// Copyright © 2022 Regula. All rights reserved.
Expand Down Expand Up @@ -56,21 +56,10 @@ class QualityResultsViewController: UIViewController {
tableView.estimatedRowHeight = UITableView.automaticDimension
view.addSubview(tableView)

let resultBarButton = UIBarButtonItem(title: "Detections", style: .plain, target: self, action: #selector(didPressResultsButton(_:)))
navigationItem.setRightBarButton(resultBarButton, animated: true)

setupConstraints()
selectedDetection = detections.first
}

@IBAction private func didPressResultsButton(_ sender: Any) {
let detectedFacesImages = detections.compactMap({ $0.crop })
guard !detectedFacesImages.isEmpty else { return }

let previewVC = ImagesPreviewViewController(images: detectedFacesImages)
navigationController?.pushViewController(previewVC, animated: true)
}

private func updateSelection(oldValue: DetectFaceResult?) {
guard selectedDetection != oldValue else { return }
sections = groupAndSortQualityResults()
Expand Down Expand Up @@ -112,9 +101,10 @@ class QualityResultsViewController: UIViewController {
let sectionScore = "\(badge) \(succededQualitiesCount)/\(allQualitiesCount)"
return "\(groupDescription) \(sectionScore)"
}

private func resultDescription(for result: ImageQualityResult) -> String {
"VALUE: \(result.value) \nEXPECTED RANGE: [\(result.range.min):\(result.range.max)]"
let value = (result.value.floatValue * 10000).rounded() / 10000
return "VALUE: \(value) \nEXPECTED RANGE: [\(result.range.min):\(result.range.max)]"
}

private func groupAndSortQualityResults() -> [Section] {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// RFCCatalogItem.h
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/18/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// RFCCatalogItem.m
// Catalog
// BasicSample
//
// Created by Pavel Kondrashkov on 5/18/21.
// Copyright © 2021 Regula. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// ImageHelper.swift
// Catalog
// BasicSample
//
// Created by Serge Rylko on 30.08.22.
// Copyright © 2022 Regula. All rights reserved.
Expand Down
Loading

0 comments on commit 653a494

Please sign in to comment.