Skip to content

Commit

Permalink
Add SensorEventHandler into Conversation sensor
Browse files Browse the repository at this point in the history
  • Loading branch information
tetujin committed Nov 30, 2023
1 parent b36bbb1 commit c150ff1
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion AWAREFramework.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'AWAREFramework'
s.version = '1.14.5'
s.version = '1.14.6'
s.summary = 'AWARE: An Open-source Context Instrumentation Framework'

# This description is used to generate tags and improve search results.
Expand Down
4 changes: 4 additions & 0 deletions AWAREFramework/Classes/Plugins/Conversation/Conversation.m
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ -(void)saveConversationInfo: (long)startTime endTime:(long)endTime {
NSLog(@"conversation result: %@", result);
}
[self setLatestValue:result];
SensorEventHandler handler = [self getSensorEventHandler];
if (handler!=nil) {
handler(self, audioData);
}
[self.storage saveDataWithDictionary:audioData buffer:NO saveInMainThread:YES];
}

Expand Down
22 changes: 11 additions & 11 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
PODS:
- AWAREFramework (1.14.5):
- AWAREFramework/Core (= 1.14.5)
- AWAREFramework/Bluetooth (1.14.5):
- AWAREFramework (1.14.6):
- AWAREFramework/Core (= 1.14.6)
- AWAREFramework/Bluetooth (1.14.6):
- AWAREFramework/Core
- AWAREFramework/Calendar (1.14.5):
- AWAREFramework/Calendar (1.14.6):
- AWAREFramework/Core
- AWAREFramework/Contact (1.14.5):
- AWAREFramework/Contact (1.14.6):
- AWAREFramework/Core
- AWAREFramework/Core (1.14.5)
- AWAREFramework/HealthKit (1.14.5):
- AWAREFramework/Core (1.14.6)
- AWAREFramework/HealthKit (1.14.6):
- AWAREFramework/Core
- AWAREFramework/Microphone (1.14.5):
- AWAREFramework/Microphone (1.14.6):
- AWAREFramework/Core
- AWAREFramework/MotionActivity (1.14.5):
- AWAREFramework/MotionActivity (1.14.6):
- AWAREFramework/Core

DEPENDENCIES:
Expand All @@ -29,8 +29,8 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
AWAREFramework: 339449ad288a41e5bcdd252bf7fc0cb25c7ccf86
AWAREFramework: b0674cce96cc77f46b8b3f3928ac5d97a45120cb

PODFILE CHECKSUM: 8a454b54db74166846c5785b138d805caeb42579

COCOAPODS: 1.14.2
COCOAPODS: 1.12.1
4 changes: 2 additions & 2 deletions Example/Pods/Local Podspecs/AWAREFramework.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 11 additions & 11 deletions Example/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Example/Pods/Pods.xcodeproj/project.pbxproj

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ AWAREFramework-iOS is available through [CocoaPods](http://cocoapods.org).
To install it, simply add the following line to your Podfile:

```ruby
pod 'AWAREFramework', '~> 1.14.2'
pod 'AWAREFramework', '~> 1.14.6'
```
And run `pod install` in your Xcode project.

Expand Down

0 comments on commit c150ff1

Please sign in to comment.