Skip to content

Commit

Permalink
Add shorter convenience accessor for the SDK. Bump version.
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardbeecroft committed May 9, 2023
1 parent 17399f6 commit cb0d970
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 23 deletions.
2 changes: 2 additions & 0 deletions Examples/Examples.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
755AF0832A002B5F0006233B /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
755AF0862A002B5F0006233B /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
75A155052A0529ED00F72AFD /* Fonts.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Fonts.swift; sourceTree = "<group>"; };
75CB64DA2A0ABE4D004E0379 /* quickverse-ios-sdk */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "quickverse-ios-sdk"; path = ..; sourceTree = "<group>"; };
75D19C752A051FD3005B7A58 /* QVKey.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QVKey.swift; sourceTree = "<group>"; };
75D19C7B2A052808005B7A58 /* Lexend-Regular.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Lexend-Regular.ttf"; sourceTree = "<group>"; };
75D19C7C2A052808005B7A58 /* Lexend-Medium.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Lexend-Medium.ttf"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -104,6 +105,7 @@
755AF0732A002B5D0006233B = {
isa = PBXGroup;
children = (
75CB64DA2A0ABE4D004E0379 /* quickverse-ios-sdk */,
75D19C792A0526CB005B7A58 /* Shared */,
752195B22A04F8C600F47BE7 /* UIKit-Example */,
755AF07E2A002B5D0006233B /* SwiftUI-Example */,
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion QuickVerse.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = "QuickVerse"
spec.version = "1.3.1"
spec.version = "1.3.2"
spec.summary = "Effortlessly integrate your quickverse.io localisations into your iOS app, for instant, over-the-air updates & more."
spec.description = <<-DESC
QuickVerse lets you translate your web and mobile apps with ease. Powered by instant, over-the-air updates, you can change your app copy anytime, anywhere.
Expand Down
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,7 @@ pod 'QuickVerse', '~> 1.3.1' // Or pin to a specific version

### Carthage

1. Add the following to your Cartfile:

```
github "QuickVerse/quickverse-ios-sdk" // // Always use the latest version
github "QuickVerse/quickverse-ios-sdk" ~> 1.3.1 // Or pin to a specific version
```
2. In a terminal window, navigate to the directory of your `Cartfile`, and run `carthage update --use-xcframeworks`
We recommend SPM for CocoaPods, but please contact us for integration guidance if you wish to use Carthage.

## Usage

Expand Down
5 changes: 4 additions & 1 deletion Sources/QuickVerse/Manager/QuickVerse.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import Foundation

/// Convenience global accessor, allowing you to call methods with shorter footprint, for example: QV.getLocalizations(
public let QV = QuickVerse.shared

public class QuickVerse {
private init() {}
public static let shared = QuickVerse()
Expand All @@ -8,7 +11,7 @@ public class QuickVerse {
public var isDebugEnabled: Bool = false

private var localizations = [QuickVerseLocalization]()
private let sdkVersion = "1.3.0"
private let sdkVersion = "1.3.2"
}

// MARK: - Public Methods
Expand Down

0 comments on commit cb0d970

Please sign in to comment.