Skip to content

Commit

Permalink
Cocoapod setup. Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
snyuryev committed Apr 15, 2020
1 parent cfdf81b commit c4d20d3
Show file tree
Hide file tree
Showing 27 changed files with 590 additions and 0 deletions.
24 changes: 24 additions & 0 deletions AlanSDK-iOS.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Pod::Spec.new do |s|

s.name = 'AlanSDK-iOS'
s.version = '2.10.1'
s.summary = 'Conversational Voice AI Platform.'
s.description = <<-DESC
The Alan Voice AI Platform provides a framework for fast and easy development and deployment voice experiences for your application.
Alan voice enables any application, on any platform.
DESC

s.homepage = 'https://github.com/alan-ai/alan-sdk-ios'
s.source = { :git => 'https://github.com/alan-ai/alan-sdk-ios.git', :tag => s.version }
s.author = { 'Alan AI, Inc' => 'developer@alan.app' }
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.social_media_url = 'https://twitter.com/alanvoiceai'

s.frameworks = 'UIKit', 'CoreVideo', 'CoreMedia', 'CoreImage', 'CoreImage', 'CoreAudio', 'AVFoundation', 'AudioToolbox', 'VideoToolbox', 'Accelerate', 'MediaPlayer'

s.source_files = 'AlanSDK-iOS/Classes/**/*'
s.public_header_files = 'AlanSDK-iOS/Classes/**/*.h', 'AlanSDK/Frameworks/AlanSDK.framework/Headers/*'
s.ios.deployment_target = '11.0'
s.ios.vendored_frameworks = 'AlanSDK-iOS/Frameworks/AlanSDK.framework'

end
Empty file added AlanSDK-iOS/Assets/.gitkeep
Empty file.
Empty file added AlanSDK-iOS/Classes/.gitkeep
Empty file.
1 change: 1 addition & 0 deletions AlanSDK-iOS/Frameworks/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
AlanSDK.framework/AlanSDK filter=lfs diff=lfs merge=lfs -text
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict>
<key>Headers/AlanBase.h</key>
<data>
VXzSdZ/cBzJbeicX422yIRGk+bI=
</data>
<key>Headers/json.hpp</key>
<data>
eJslJrqyU5pmVD2727kGlLl+eFo=
</data>
<key>Info.plist</key>
<data>
Xjoy20z7WWI4TgLMG0tyA/FOkYc=
</data>
</dict>
<key>files2</key>
<dict>
<key>Headers/AlanBase.h</key>
<dict>
<key>hash</key>
<data>
VXzSdZ/cBzJbeicX422yIRGk+bI=
</data>
<key>hash2</key>
<data>
GNHWHRr0mUYXXgQnPivoBxTo5x22wVBV5bB9L6CGHYA=
</data>
</dict>
<key>Headers/json.hpp</key>
<dict>
<key>hash</key>
<data>
eJslJrqyU5pmVD2727kGlLl+eFo=
</data>
<key>hash2</key>
<data>
nrJ41F2aaUrPCiMDrRoeqP/YLIP7/bNcTv1SShAdPsQ=
</data>
</dict>
</dict>
<key>rules</key>
<dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^.*</key>
<true/>
<key>^.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>
Binary file not shown.
3 changes: 3 additions & 0 deletions AlanSDK-iOS/Frameworks/AlanSDK.framework/AlanSDK
Git LFS file not shown
Binary file not shown.
99 changes: 99 additions & 0 deletions AlanSDK-iOS/Frameworks/AlanSDK.framework/Headers/AlanButton.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
//
// AlanButton.h
// AlanSDK
//
// Copyright © 2019 Alan AI Inc. All rights reserved.
// Alan Studio - https://studio.alan.app
//

#import <UIKit/UIKit.h>

@class AlanConfig;

/**
AlanButton
This class provides a view with voice button
Usage:
1. Create AlanButton class as usual UIView
2. Place AlanButton to some place in your application
3. AlanButton will handle tap actions to start and stop recording
*/
@interface AlanButton: UIView

/**
Creates new AlanButton instance
@param config AlanConfig object for configuration
@return AlanButton object with given parameters
*/
- (instancetype)initWithConfig:(AlanConfig *)config;

/**
Plays text via Alan
@param text Text to be played
*/
- (void)playText:(NSString *)text;

/**
Sends voice synchronized data event
@param data Command data event to be send
*/
- (void)playData:(NSDictionary *)data __attribute__((deprecated("Use 'playCommand'")));

/**
Sends voice synchronized data event
@param command Command data event to be send
*/
- (void)playCommand:(NSDictionary *)command;

/**
Set visual state of an application
@param data Data with visual state description
*/
- (void)setVisual:(NSDictionary *)data __attribute__((deprecated("Use 'setVisualState'")));

/**
Set visual state of an application
@param visualStateData Data with visual state description
*/
- (void)setVisualState:(NSDictionary *)visualStateData;

/**
Calls specific Alan studio project api
@param method Method name, like "script::someApiName", or just - "someApiName"
@param params Method data params
@param callback Callback to handle result
*/
- (void)call:(NSString *)method withParams:(NSDictionary*)params callback:(void(^)(NSError *error, NSString *object))callback __attribute__((deprecated("Use 'callProjectApi(_:withData:callback:)'")));

/**
Calls specific Alan studio project api
@param method Method name, like "script::someApiName", or just - "someApiName"
@param data Method data params
@param callback Callback to handle result
*/
- (void)callProjectApi:(NSString *)method withData:(NSDictionary*)data callback:(void(^)(NSError *error, NSString *object))callback;

/**
* Activate Alan voice button
*/
- (void)activate;

/**
* Deactivate Alan voice button
*/
- (void)deactivate;

/// Indicator that Alan voice button is activated
@property (readonly) BOOL isActivated;

@end
Loading

0 comments on commit c4d20d3

Please sign in to comment.