forked from anupamchugh/iowncode
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iOS MLKit with Smart Replies Across Languages
- Loading branch information
1 parent
efdcb37
commit e692c77
Showing
14 changed files
with
684 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Uncomment the next line to define a global platform for your project | ||
# platform :ios, '9.0' | ||
|
||
target 'iOSMLKitNLP' do | ||
# Comment the next line if you don't want to use dynamic frameworks | ||
use_frameworks! | ||
pod 'Firebase/MLNaturalLanguage' | ||
pod 'Firebase/MLNLLanguageID' | ||
pod 'Firebase/MLNLTranslate' | ||
pod 'Firebase/MLCommon' | ||
pod 'Firebase/MLNLSmartReply' | ||
# Pods for iOSMLKitNLP | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,161 @@ | ||
PODS: | ||
- Firebase/CoreOnly (6.11.0): | ||
- FirebaseCore (= 6.3.2) | ||
- Firebase/MLCommon (6.11.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMLCommon (~> 0.19.0) | ||
- Firebase/MLNaturalLanguage (6.11.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMLNaturalLanguage (~> 0.17.0) | ||
- Firebase/MLNLLanguageID (6.11.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMLNLLanguageID (~> 0.17.0) | ||
- Firebase/MLNLSmartReply (6.11.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMLNLSmartReply (~> 0.17.0) | ||
- Firebase/MLNLTranslate (6.11.0): | ||
- Firebase/CoreOnly | ||
- FirebaseMLNLTranslate (~> 0.17.0) | ||
- FirebaseABTesting (3.1.2): | ||
- FirebaseAnalyticsInterop (~> 1.3) | ||
- FirebaseCore (~> 6.1) | ||
- Protobuf (>= 3.9.2, ~> 3.9) | ||
- FirebaseAnalyticsInterop (1.4.0) | ||
- FirebaseCore (6.3.2): | ||
- FirebaseCoreDiagnostics (~> 1.0) | ||
- FirebaseCoreDiagnosticsInterop (~> 1.0) | ||
- GoogleUtilities/Environment (~> 6.2) | ||
- GoogleUtilities/Logger (~> 6.2) | ||
- FirebaseCoreDiagnostics (1.1.1): | ||
- FirebaseCoreDiagnosticsInterop (~> 1.0) | ||
- GoogleDataTransportCCTSupport (~> 1.0) | ||
- GoogleUtilities/Environment (~> 6.2) | ||
- GoogleUtilities/Logger (~> 6.2) | ||
- nanopb (~> 0.3.901) | ||
- FirebaseCoreDiagnosticsInterop (1.0.0) | ||
- FirebaseInstanceID (4.2.6): | ||
- FirebaseCore (~> 6.0) | ||
- GoogleUtilities/Environment (~> 6.0) | ||
- GoogleUtilities/UserDefaults (~> 6.0) | ||
- FirebaseMLCommon (0.19.0): | ||
- FirebaseCore (~> 6.3) | ||
- FirebaseInstanceID (~> 4.2) | ||
- GoogleToolboxForMac/Logger (~> 2.1) | ||
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)" | ||
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)" | ||
- GoogleUtilities/UserDefaults (~> 6.0) | ||
- GTMSessionFetcher/Core (~> 1.1) | ||
- Protobuf (~> 3.5) | ||
- FirebaseMLNaturalLanguage (0.17.0): | ||
- FirebaseCore (~> 6.3) | ||
- FirebaseMLCommon (~> 0.19) | ||
- GoogleToolboxForMac/Logger (~> 2.1) | ||
- "GoogleToolboxForMac/NSData+zlib (~> 2.1)" | ||
- "GoogleToolboxForMac/NSDictionary+URLArguments (~> 2.1)" | ||
- GTMSessionFetcher/Core (~> 1.1) | ||
- Protobuf (~> 3.5) | ||
- FirebaseMLNLLanguageID (0.17.0): | ||
- FirebaseCore (~> 6.3) | ||
- FirebaseMLNaturalLanguage (~> 0.17) | ||
- FirebaseMLNLSmartReply (0.17.0): | ||
- FirebaseCore (~> 6.3) | ||
- FirebaseMLNaturalLanguage (~> 0.17) | ||
- FirebaseMLNLLanguageID (~> 0.17) | ||
- FirebaseRemoteConfig (~> 4.4) | ||
- FirebaseMLNLTranslate (0.17.0): | ||
- FirebaseCore (~> 6.3) | ||
- FirebaseMLNaturalLanguage (~> 0.17) | ||
- FirebaseRemoteConfig (~> 4.4) | ||
- FirebaseRemoteConfig (4.4.3): | ||
- FirebaseABTesting (~> 3.1) | ||
- FirebaseAnalyticsInterop (~> 1.4) | ||
- FirebaseCore (~> 6.2) | ||
- FirebaseInstanceID (~> 4.2) | ||
- GoogleUtilities/Environment (~> 6.2) | ||
- "GoogleUtilities/NSData+zlib (~> 6.2)" | ||
- Protobuf (>= 3.9.2, ~> 3.9) | ||
- GoogleDataTransport (3.0.1) | ||
- GoogleDataTransportCCTSupport (1.2.1): | ||
- GoogleDataTransport (~> 3.0) | ||
- nanopb (~> 0.3.901) | ||
- GoogleToolboxForMac/DebugUtils (2.2.2): | ||
- GoogleToolboxForMac/Defines (= 2.2.2) | ||
- GoogleToolboxForMac/Defines (2.2.2) | ||
- GoogleToolboxForMac/Logger (2.2.2): | ||
- GoogleToolboxForMac/Defines (= 2.2.2) | ||
- "GoogleToolboxForMac/NSData+zlib (2.2.2)": | ||
- GoogleToolboxForMac/Defines (= 2.2.2) | ||
- "GoogleToolboxForMac/NSDictionary+URLArguments (2.2.2)": | ||
- GoogleToolboxForMac/DebugUtils (= 2.2.2) | ||
- GoogleToolboxForMac/Defines (= 2.2.2) | ||
- "GoogleToolboxForMac/NSString+URLArguments (= 2.2.2)" | ||
- "GoogleToolboxForMac/NSString+URLArguments (2.2.2)" | ||
- GoogleUtilities/Environment (6.3.1) | ||
- GoogleUtilities/Logger (6.3.1): | ||
- GoogleUtilities/Environment | ||
- "GoogleUtilities/NSData+zlib (6.3.1)" | ||
- GoogleUtilities/UserDefaults (6.3.1): | ||
- GoogleUtilities/Logger | ||
- GTMSessionFetcher/Core (1.3.0) | ||
- nanopb (0.3.9011): | ||
- nanopb/decode (= 0.3.9011) | ||
- nanopb/encode (= 0.3.9011) | ||
- nanopb/decode (0.3.9011) | ||
- nanopb/encode (0.3.9011) | ||
- Protobuf (3.10.0) | ||
|
||
DEPENDENCIES: | ||
- Firebase/MLCommon | ||
- Firebase/MLNaturalLanguage | ||
- Firebase/MLNLLanguageID | ||
- Firebase/MLNLSmartReply | ||
- Firebase/MLNLTranslate | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Firebase | ||
- FirebaseABTesting | ||
- FirebaseAnalyticsInterop | ||
- FirebaseCore | ||
- FirebaseCoreDiagnostics | ||
- FirebaseCoreDiagnosticsInterop | ||
- FirebaseInstanceID | ||
- FirebaseMLCommon | ||
- FirebaseMLNaturalLanguage | ||
- FirebaseMLNLLanguageID | ||
- FirebaseMLNLSmartReply | ||
- FirebaseMLNLTranslate | ||
- FirebaseRemoteConfig | ||
- GoogleDataTransport | ||
- GoogleDataTransportCCTSupport | ||
- GoogleToolboxForMac | ||
- GoogleUtilities | ||
- GTMSessionFetcher | ||
- nanopb | ||
- Protobuf | ||
|
||
SPEC CHECKSUMS: | ||
Firebase: bc9cfc7a96c73268656d5aaab453ff1b4b530e0e | ||
FirebaseABTesting: 0d10f3cdc3fa00f3f175b5b56c1003c8e888299f | ||
FirebaseAnalyticsInterop: d48b6ab67bcf016a05e55b71fc39c61c0cb6b7f3 | ||
FirebaseCore: beeff42c07c30ea94702471d99db2089b594fbbd | ||
FirebaseCoreDiagnostics: af29e43048607588c050889d19204f4d7b758c9f | ||
FirebaseCoreDiagnosticsInterop: 6829da2b8d1fc795ff1bd99df751d3788035d2cb | ||
FirebaseInstanceID: d0eafcd8bdbd3447cd694594734078c3e3e77d8b | ||
FirebaseMLCommon: 074a67e05122b1c9f6401a4e33b2cea3b4efd224 | ||
FirebaseMLNaturalLanguage: 9d38301a41b1201d248588bf66937b975391e8f4 | ||
FirebaseMLNLLanguageID: afd2e97dfc8ff215f7527acc7e4cd56d4f537737 | ||
FirebaseMLNLSmartReply: 9fb6e404516ea4a3425d210542fedba4fe9a92be | ||
FirebaseMLNLTranslate: ed248c2c2eaf3bc2450505e3e0c4c8487c7879fd | ||
FirebaseRemoteConfig: 51df936d5dfba17f267b2344070c89e8daa3fcfb | ||
GoogleDataTransport: 166f9b9f82cbf60a204e8fe2daa9db3e3ec1fb15 | ||
GoogleDataTransportCCTSupport: f6ab1962e9dc05ab1fb938b795e5b310209edeec | ||
GoogleToolboxForMac: 800648f8b3127618c1b59c7f97684427630c5ea3 | ||
GoogleUtilities: f895fde57977df4e0233edda0dbeac490e3703b6 | ||
GTMSessionFetcher: 43b8b64263023d4f32caa0b40f4c8bfa3c5f36d8 | ||
nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd | ||
Protobuf: a4dc852ad69c027ca2166ed287b856697814375b | ||
|
||
PODFILE CHECKSUM: 81b06ef193865117dd6b19a9e4a46d1855fd9b10 | ||
|
||
COCOAPODS: 1.8.3 |
10 changes: 10 additions & 0 deletions
10
iOSMLKitNLP/iOSMLKitNLP.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
iOSMLKitNLP/iOSMLKitNLP.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http:https://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
Binary file added
BIN
+20.3 KB
...iOSMLKitNLP.xcworkspace/xcuserdata/anupamchugh.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// | ||
// AppDelegate.swift | ||
// iOSMLKitNLP | ||
// | ||
// Created by Anupam Chugh on 16/11/19. | ||
// Copyright © 2019 iowncode. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import Firebase | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
// Override point for customization after application launch. | ||
FirebaseApp.configure() | ||
return true | ||
} | ||
|
||
// MARK: UISceneSession Lifecycle | ||
|
||
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { | ||
// Called when a new scene session is being created. | ||
// Use this method to select a configuration to create the new scene with. | ||
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) | ||
} | ||
|
||
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { | ||
// Called when the user discards a scene session. | ||
// 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. | ||
} | ||
|
||
|
||
} | ||
|
98 changes: 98 additions & 0 deletions
98
iOSMLKitNLP/iOSMLKitNLP/Assets.xcassets/AppIcon.appiconset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "20x20", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "20x20", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "29x29", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "29x29", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "40x40", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "40x40", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "60x60", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "iphone", | ||
"size" : "60x60", | ||
"scale" : "3x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "20x20", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "20x20", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "29x29", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "29x29", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "40x40", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "40x40", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "76x76", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "76x76", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "ipad", | ||
"size" : "83.5x83.5", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "ios-marketing", | ||
"size" : "1024x1024", | ||
"scale" : "1x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
iOSMLKitNLP/iOSMLKitNLP/Base.lproj/LaunchScreen.storyboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM"> | ||
<dependencies> | ||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/> | ||
<capability name="Safe area layout guides" minToolsVersion="9.0"/> | ||
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> | ||
</dependencies> | ||
<scenes> | ||
<!--View Controller--> | ||
<scene sceneID="EHf-IW-A2E"> | ||
<objects> | ||
<viewController id="01J-lp-oVM" sceneMemberID="viewController"> | ||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3"> | ||
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/> | ||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/> | ||
<color key="backgroundColor" xcode11CocoaTouchSystemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> | ||
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/> | ||
</view> | ||
</viewController> | ||
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/> | ||
</objects> | ||
<point key="canvasLocation" x="53" y="375"/> | ||
</scene> | ||
</scenes> | ||
</document> |
Oops, something went wrong.