Skip to content

Commit

Permalink
Update Package and podspec with version 1.0.0-alpha and checksum 1b84…
Browse files Browse the repository at this point in the history
…8694116d145e800000d797b93230ed17d51a913c912df88475d0bdb6bd5d
  • Loading branch information
actions-user committed Jan 16, 2025
1 parent 2c68fec commit 3ad256b
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 109 deletions.
2 changes: 1 addition & 1 deletion FootprintOnboardingComponents.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|
s.name = 'FootprintOnboardingComponents'
# Do not change this line as it is automatically updated by the GitHub action
s.version = '0.2.42'
s.version = '1.0.0-alpha'
s.summary = 'A package for Swift onboarding components.'
s.description = <<-DESC
Footprint-powered onboarding flows to your application
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ let package = Package(
// Define the binary target for the shared framework.
.binaryTarget(
name: "SwiftOnboardingComponentsShared",
url: "https://github.com/onefootprint/Swift-Onboarding-Components/releases/download/0.2.42/SwiftOnboardingComponentsShared.xcframework.zip",
checksum: "6a86ef1d9a68115dc467774c64140d0170587e101921dba0486be164a93bd6e7"
url: "https://github.com/onefootprint/Swift-Onboarding-Components/releases/download/1.0.0-alpha/SwiftOnboardingComponentsShared.xcframework.zip",
checksum: "1b848694116d145e800000d797b93230ed17d51a913c912df88475d0bdb6bd5d"
), // Define the internal target that depends on the binary target.
.target(
name: "Footprint",
Expand Down
28 changes: 3 additions & 25 deletions Sources/Footprint/FormManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -288,43 +288,21 @@ class FormManager: ObservableObject {


func getVaultData() -> VaultData {
return VaultData(
return VaultData.createVault(
idAddressLine1: idAddressLine1.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idAddressLine1,
idAddressLine2: idAddressLine2.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idAddressLine2,
idCitizenships: nil,
idAddressLine2: idAddressLine2.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idAddressLine2,
idCity: idCity.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idCity,
idCountry: idCountry.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idCountry,
idDob: idDob.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idDob,
idDriversLicenseNumber: nil,
idDriversLicenseState: nil,
idEmail: idEmail.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idEmail,
idFirstName: idFirstName.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idFirstName,
idItin: nil,
idLastName: idLastName.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idLastName,
idMiddleName: idMiddleName.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idMiddleName,
idNationality: nil,
idPhoneNumber: idPhoneNumber.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idPhoneNumber,
idSsn4: idSsn4.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idSsn4,
idSsn9: idSsn9.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idSsn9,
idState: idState.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idState,
idUsLegalStatus: nil,
idUsTaxId: nil,
idVisaExpirationDate: nil,
idVisaKind: nil,
idZip: idZip.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idZip,
investorProfileAnnualIncome: nil,
investorProfileBrokerageFirmEmployer: nil,
investorProfileDeclarations: nil,
investorProfileEmployer: nil,
investorProfileEmploymentStatus: nil,
investorProfileFamilyMemberNames: nil,
investorProfileFundingSources: nil,
investorProfileInvestmentGoals: nil,
investorProfileNetWorth: nil,
investorProfileOccupation: nil,
investorProfilePoliticalOrganization: nil,
investorProfileRiskTolerance: nil,
investorProfileSeniorExecutiveSymbols: nil
idZip: idZip.trimmingCharacters(in: .whitespaces).isEmpty ? nil : idZip
)
}

Expand Down
152 changes: 74 additions & 78 deletions Sources/Footprint/Utils/ClassExtension.swift
Original file line number Diff line number Diff line change
@@ -1,80 +1,76 @@
// extension required due to limitations of KMM not able to generate default values in obj-c
public extension VaultData {
convenience init(
idAddressLine1: String? = nil,
idAddressLine2: String? = nil,
idCitizenships: [Iso3166TwoDigitCountryCode]? = nil,
idCity: String? = nil,
idCountry: String? = nil,
idDob: String? = nil,
idDriversLicenseNumber: String? = nil,
idDriversLicenseState: String? = nil,
idEmail: String? = nil,
idFirstName: String? = nil,
idItin: String? = nil,
idLastName: String? = nil,
idMiddleName: String? = nil,
idNationality: String? = nil,
idPhoneNumber: String? = nil,
idSsn4: String? = nil,
idSsn9: String? = nil,
idState: String? = nil,
idUsLegalStatus: String? = nil,
idUsTaxId: String? = nil,
idVisaExpirationDate: String? = nil,
idVisaKind: String? = nil,
idZip: String? = nil,
investorProfileAnnualIncome: String? = nil,
investorProfileBrokerageFirmEmployer: String? = nil,
investorProfileDeclarations: [InvestorProfileDeclaration]? = nil,
investorProfileEmployer: String? = nil,
investorProfileEmploymentStatus: String? = nil,
investorProfileFamilyMemberNames: [String]? = nil,
investorProfileFundingSources: [InvestorProfileFundingSource]? = nil,
investorProfileInvestmentGoals: [InvestorProfileInvestmentGoal]? = nil,
investorProfileNetWorth: String? = nil,
investorProfileOccupation: String? = nil,
investorProfilePoliticalOrganization: String? = nil,
investorProfileRiskTolerance: String? = nil,
investorProfileSeniorExecutiveSymbols: [String]? = nil
) {
self.init(
idAddressLine1: idAddressLine1,
idAddressLine2: idAddressLine2,
idCitizenships: idCitizenships,
idCity: idCity,
idCountry: idCountry,
idDob: idDob,
idDriversLicenseNumber: idDriversLicenseNumber,
idDriversLicenseState: idDriversLicenseState,
idEmail: idEmail,
idFirstName: idFirstName,
idItin: idItin,
idLastName: idLastName,
idMiddleName: idMiddleName,
idNationality: idNationality,
idPhoneNumber: idPhoneNumber,
idSsn4: idSsn4,
idSsn9: idSsn9,
idState: idState,
idUsLegalStatus: idUsLegalStatus,
idUsTaxId: idUsTaxId,
idVisaExpirationDate: idVisaExpirationDate,
idVisaKind: idVisaKind,
idZip: idZip,
investorProfileAnnualIncome: investorProfileAnnualIncome,
investorProfileBrokerageFirmEmployer: investorProfileBrokerageFirmEmployer,
investorProfileDeclarations: investorProfileDeclarations,
investorProfileEmployer: investorProfileEmployer,
investorProfileEmploymentStatus: investorProfileEmploymentStatus,
investorProfileFamilyMemberNames: investorProfileFamilyMemberNames,
investorProfileFundingSources: investorProfileFundingSources,
investorProfileInvestmentGoals: investorProfileInvestmentGoals,
investorProfileNetWorth: investorProfileNetWorth,
investorProfileOccupation: investorProfileOccupation,
investorProfilePoliticalOrganization: investorProfilePoliticalOrganization,
investorProfileRiskTolerance: investorProfileRiskTolerance,
investorProfileSeniorExecutiveSymbols: investorProfileSeniorExecutiveSymbols
)
}
}
static func createVault( idAddressLine1: String? = nil,
idAddressLine2: String? = nil,
idCitizenships: [Iso3166TwoDigitCountryCode]? = nil,
idCity: String? = nil,
idCountry: String? = nil,
idDob: String? = nil,
idDriversLicenseNumber: String? = nil,
idDriversLicenseState: String? = nil,
idEmail: String? = nil,
idFirstName: String? = nil,
idItin: String? = nil,
idLastName: String? = nil,
idMiddleName: String? = nil,
idNationality: String? = nil,
idPhoneNumber: String? = nil,
idSsn4: String? = nil,
idSsn9: String? = nil,
idState: String? = nil,
idUsLegalStatus: String? = nil,
idUsTaxId: String? = nil,
idVisaExpirationDate: String? = nil,
idVisaKind: String? = nil,
idZip: String? = nil,
investorProfileAnnualIncome: String? = nil,
investorProfileBrokerageFirmEmployer: String? = nil,
investorProfileDeclarations: [InvestorProfileDeclaration]? = nil,
investorProfileEmployer: String? = nil,
investorProfileEmploymentStatus: String? = nil,
investorProfileFamilyMemberNames: [String]? = nil,
investorProfileFundingSources: [InvestorProfileFundingSource]? = nil,
investorProfileInvestmentGoals: [InvestorProfileInvestmentGoal]? = nil,
investorProfileNetWorth: String? = nil,
investorProfileOccupation: String? = nil,
investorProfilePoliticalOrganization: String? = nil,
investorProfileRiskTolerance: String? = nil,
investorProfileSeniorExecutiveSymbols: [String]? = nil) -> VaultData {
return VaultData( idAddressLine1: idAddressLine1,
idAddressLine2: idAddressLine2,
idCitizenships: idCitizenships,
idCity: idCity,
idCountry: idCountry,
idDob: idDob,
idDriversLicenseNumber: idDriversLicenseNumber,
idDriversLicenseState: idDriversLicenseState,
idEmail: idEmail,
idFirstName: idFirstName,
idItin: idItin,
idLastName: idLastName,
idMiddleName: idMiddleName,
idNationality: idNationality,
idPhoneNumber: idPhoneNumber,
idSsn4: idSsn4,
idSsn9: idSsn9,
idState: idState,
idUsLegalStatus: idUsLegalStatus,
idUsTaxId: idUsTaxId,
idVisaExpirationDate: idVisaExpirationDate,
idVisaKind: idVisaKind,
idZip: idZip,
investorProfileAnnualIncome: investorProfileAnnualIncome,
investorProfileBrokerageFirmEmployer: investorProfileBrokerageFirmEmployer,
investorProfileDeclarations: investorProfileDeclarations,
investorProfileEmployer: investorProfileEmployer,
investorProfileEmploymentStatus: investorProfileEmploymentStatus,
investorProfileFamilyMemberNames: investorProfileFamilyMemberNames,
investorProfileFundingSources: investorProfileFundingSources,
investorProfileInvestmentGoals: investorProfileInvestmentGoals,
investorProfileNetWorth: investorProfileNetWorth,
investorProfileOccupation: investorProfileOccupation,
investorProfilePoliticalOrganization: investorProfilePoliticalOrganization,
investorProfileRiskTolerance: investorProfileRiskTolerance,
investorProfileSeniorExecutiveSymbols: investorProfileSeniorExecutiveSymbols)
}
}
8 changes: 5 additions & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
### Changelog for Swift onboarding components SDK
*Updating this file is one of the requirements for GitHub CI/CD for Swift package release*

# v0.2.42
Initial test release!

# v1.0.0-alpha
Initial alpha release

# v0.2.43
Initial test release!

0 comments on commit 3ad256b

Please sign in to comment.