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

Add External ASR Interfaces #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.0.0] - (26/12/23)
### Bug Fixes
- Add External ASR Interfaces
- Remove Reverie internal support
- Update Demo

## [2.1.0] - (26/07/23)
### Bug Fixes
- Fixed Crashes
Expand Down
Binary file modified Example/.DS_Store
Binary file not shown.
40 changes: 24 additions & 16 deletions Example/Demo_pod/Demo_pod.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,37 @@
objects = {

/* Begin PBXBuildFile section */
160ECAA02B33038B00336207 /* ReverieModule.swift in Sources */ = {isa = PBXBuildFile; fileRef = 160ECA9F2B33038B00336207 /* ReverieModule.swift */; };
160ECAA22B33058600336207 /* Ext-Str.swift in Sources */ = {isa = PBXBuildFile; fileRef = 160ECAA12B33058600336207 /* Ext-Str.swift */; };
3B6C2EEA255E6F3400041CFF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B6C2EE9255E6F3400041CFF /* AppDelegate.swift */; };
3B6C2EEE255E6F3400041CFF /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3B6C2EED255E6F3400041CFF /* ViewController.swift */; };
3B6C2EF1255E6F3400041CFF /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3B6C2EEF255E6F3400041CFF /* Main.storyboard */; };
3B6C2EF3255E6F3500041CFF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 3B6C2EF2255E6F3500041CFF /* Assets.xcassets */; };
3B6C2EF6255E6F3500041CFF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3B6C2EF4255E6F3500041CFF /* LaunchScreen.storyboard */; };
F05F0435C3EA96E085571579 /* Pods_Demo_pod.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FBAC2578F07DF904B3DBF306 /* Pods_Demo_pod.framework */; };
A63B9B1B0455EC79E6DFE95F /* Pods_Demo_pod.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0DC7B181D6FCD3CD5519117A /* Pods_Demo_pod.framework */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
1F319F094E624C93181E1F49 /* Pods-Demo_pod.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo_pod.debug.xcconfig"; path = "Target Support Files/Pods-Demo_pod/Pods-Demo_pod.debug.xcconfig"; sourceTree = "<group>"; };
0DC7B181D6FCD3CD5519117A /* Pods_Demo_pod.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo_pod.framework; sourceTree = BUILT_PRODUCTS_DIR; };
160ECA9F2B33038B00336207 /* ReverieModule.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ReverieModule.swift; sourceTree = "<group>"; };
160ECAA12B33058600336207 /* Ext-Str.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Ext-Str.swift"; sourceTree = "<group>"; };
3B6C2EE6255E6F3400041CFF /* Demo_pod.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo_pod.app; sourceTree = BUILT_PRODUCTS_DIR; };
3B6C2EE9255E6F3400041CFF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3B6C2EED255E6F3400041CFF /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
3B6C2EF0255E6F3400041CFF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3B6C2EF2255E6F3500041CFF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
3B6C2EF5255E6F3500041CFF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
3B6C2EF7255E6F3500041CFF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
EABA6280484988EAB0250349 /* Pods-Demo_pod.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo_pod.release.xcconfig"; path = "Target Support Files/Pods-Demo_pod/Pods-Demo_pod.release.xcconfig"; sourceTree = "<group>"; };
FBAC2578F07DF904B3DBF306 /* Pods_Demo_pod.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Demo_pod.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3EAB9AA7222175D042A80499 /* Pods-Demo_pod.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo_pod.debug.xcconfig"; path = "Target Support Files/Pods-Demo_pod/Pods-Demo_pod.debug.xcconfig"; sourceTree = "<group>"; };
A02CBD115AC1E84DF75414E0 /* Pods-Demo_pod.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Demo_pod.release.xcconfig"; path = "Target Support Files/Pods-Demo_pod/Pods-Demo_pod.release.xcconfig"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3B6C2EE3255E6F3400041CFF /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
F05F0435C3EA96E085571579 /* Pods_Demo_pod.framework in Frameworks */,
A63B9B1B0455EC79E6DFE95F /* Pods_Demo_pod.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -46,7 +50,7 @@
3B6C2EE8255E6F3400041CFF /* Demo_pod */,
3B6C2EE7255E6F3400041CFF /* Products */,
E55155D0F0265B3DB2F18A09 /* Pods */,
7404FC5D31AAB5C7D7096ED0 /* Frameworks */,
C9501C54AAFF3F58FFC0626C /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -63,6 +67,8 @@
children = (
3B6C2EE9255E6F3400041CFF /* AppDelegate.swift */,
3B6C2EED255E6F3400041CFF /* ViewController.swift */,
160ECA9F2B33038B00336207 /* ReverieModule.swift */,
160ECAA12B33058600336207 /* Ext-Str.swift */,
3B6C2EEF255E6F3400041CFF /* Main.storyboard */,
3B6C2EF2255E6F3500041CFF /* Assets.xcassets */,
3B6C2EF4255E6F3500041CFF /* LaunchScreen.storyboard */,
Expand All @@ -71,19 +77,19 @@
path = Demo_pod;
sourceTree = "<group>";
};
7404FC5D31AAB5C7D7096ED0 /* Frameworks */ = {
C9501C54AAFF3F58FFC0626C /* Frameworks */ = {
isa = PBXGroup;
children = (
FBAC2578F07DF904B3DBF306 /* Pods_Demo_pod.framework */,
0DC7B181D6FCD3CD5519117A /* Pods_Demo_pod.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
E55155D0F0265B3DB2F18A09 /* Pods */ = {
isa = PBXGroup;
children = (
1F319F094E624C93181E1F49 /* Pods-Demo_pod.debug.xcconfig */,
EABA6280484988EAB0250349 /* Pods-Demo_pod.release.xcconfig */,
3EAB9AA7222175D042A80499 /* Pods-Demo_pod.debug.xcconfig */,
A02CBD115AC1E84DF75414E0 /* Pods-Demo_pod.release.xcconfig */,
);
path = Pods;
sourceTree = "<group>";
Expand All @@ -95,11 +101,11 @@
isa = PBXNativeTarget;
buildConfigurationList = 3B6C2EFA255E6F3500041CFF /* Build configuration list for PBXNativeTarget "Demo_pod" */;
buildPhases = (
B535517F4E0FEC6FC4041F30 /* [CP] Check Pods Manifest.lock */,
FE9D4A6CFE33E5BBC5BED563 /* [CP] Check Pods Manifest.lock */,
3B6C2EE2255E6F3400041CFF /* Sources */,
3B6C2EE3255E6F3400041CFF /* Frameworks */,
3B6C2EE4255E6F3400041CFF /* Resources */,
3D2DBA8DA4C9321C1628B356 /* [CP] Embed Pods Frameworks */,
2C8B9AB79D07AB42E6FAB286 /* [CP] Embed Pods Frameworks */,
);
buildRules = (
);
Expand Down Expand Up @@ -156,7 +162,7 @@
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
3D2DBA8DA4C9321C1628B356 /* [CP] Embed Pods Frameworks */ = {
2C8B9AB79D07AB42E6FAB286 /* [CP] Embed Pods Frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand All @@ -173,7 +179,7 @@
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Demo_pod/Pods-Demo_pod-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
B535517F4E0FEC6FC4041F30 /* [CP] Check Pods Manifest.lock */ = {
FE9D4A6CFE33E5BBC5BED563 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
Expand Down Expand Up @@ -204,6 +210,8 @@
files = (
3B6C2EEE255E6F3400041CFF /* ViewController.swift in Sources */,
3B6C2EEA255E6F3400041CFF /* AppDelegate.swift in Sources */,
160ECAA02B33038B00336207 /* ReverieModule.swift in Sources */,
160ECAA22B33058600336207 /* Ext-Str.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -347,7 +355,7 @@
};
3B6C2EFB255E6F3500041CFF /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 1F319F094E624C93181E1F49 /* Pods-Demo_pod.debug.xcconfig */;
baseConfigurationReference = 3EAB9AA7222175D042A80499 /* Pods-Demo_pod.debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand All @@ -368,7 +376,7 @@
};
3B6C2EFC255E6F3500041CFF /* Release */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = EABA6280484988EAB0250349 /* Pods-Demo_pod.release.xcconfig */;
baseConfigurationReference = A02CBD115AC1E84DF75414E0 /* Pods-Demo_pod.release.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
Expand Down
50 changes: 50 additions & 0 deletions Example/Demo_pod/Demo_pod/Ext-Str.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
//
// Ext-Str.swift
// Demo_pod
//
// Created by Ketan Doiphode on 20/12/23.
//

import Foundation

extension String {

/// Converts string json to Dictionary
/// - Returns: returns dictionary object if json is valid
func toJSON() -> [String: Any]? {
if let data = self.data(using: .utf8) {
do {
return try JSONSerialization.jsonObject(with: data, options: []) as? [String: Any]
} catch {
print(error.localizedDescription)
}
}
return nil
}

/// Retrieves stores value against provided key
/// - Parameter key: string key
init?(key: String) {
guard let str = UserDefaults.standard.string(forKey: key) else {
return nil
}
self.init(str)
}

/// Stores string value in `UserDefaults`
/// - Parameter key: Key against stored value
func storeUserDefault(key: String) {
UserDefaults.standard.set(self, forKey: key)
UserDefaults.standard.synchronize()
}


/// Validates if string is valid URL
/// - Returns: Validation result
func isValidUrl() -> Bool {
let urlRegEx = "^(https?://)?(www\\.)?([-a-z0-9]{1,63}\\.)*?[a-z0-9][-a-z0-9]{0,61}[a-z0-9]\\.[a-z]{2,6}(/[-\\w@\\+\\.~#\\?&/=%]*)?$"
let urlTest = NSPredicate(format:"SELF MATCHES %@", urlRegEx)
let result = urlTest.evaluate(with: self)
return result
}
}
Loading