Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 798cb5f

Browse files
dw2kimDae Won Kim
andauthored
Fix/main activity android (#6)
* remove todo for onDetachedFromActivity * update the version to 0.1.6 Co-authored-by: Dae Won Kim <dkim@homex.com>
1 parent 1c626cc commit 798cb5f

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 0.1.6
2+
3+
Remove TODO for onDetachedFromActivity method
4+
15
# 0.1.0
26

37
Initial release.

android/src/main/kotlin/com/homexlabs/optimizely_dart/OptimizelyPlugin.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,19 +111,18 @@ class OptimizelyPlugin: FlutterPlugin, MethodCallHandler, ActivityAware {
111111
}
112112

113113
override fun onDetachedFromActivity() {
114-
TODO("Not yet implemented")
115114
}
116115

117116
override fun onReattachedToActivityForConfigChanges(binding: ActivityPluginBinding) {
118-
TODO("Not yet implemented")
117+
onAttachedToActivity(binding)
119118
}
120119

121120
override fun onAttachedToActivity(binding: ActivityPluginBinding) {
122121
activity = binding.activity
123122
}
124123

125124
override fun onDetachedFromActivityForConfigChanges() {
126-
TODO("Not yet implemented")
125+
onDetachedFromActivity()
127126
}
128127

129128
private fun initOptimizelyManager(sdkKey: String, dataFile: String) {

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: optimizely_dart
22
description: Flutter plugin for Optimizely native SDKs. Check feature flags and feature variables from your Optimizely project.
3-
version: 0.1.0
3+
version: 0.1.6
44
homepage: https://github.com/HomeXLabs/optimizely-dart
55
repository: https://github.com/HomeXLabs/optimizely-dart
66

0 commit comments

Comments
 (0)