Skip to content

Commit

Permalink
Release 0.6.11
Browse files Browse the repository at this point in the history
  • Loading branch information
pablichjenkov committed Jul 19, 2024
1 parent f6294e5 commit d17b91b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.macaosoftware.component.demo

import android.app.Activity
import com.macaosoftware.app.InitializationError
import com.macaosoftware.plugin.MacaoApplicationCallback
import com.macaosoftware.app.PluginFactory
import com.macaosoftware.app.PluginManager
Expand All @@ -9,7 +10,7 @@ import com.macaosoftware.util.MacaoResult

class AndroidPluginManagerInitializer(private val activity: Activity) : PluginManagerInitializer {

override suspend fun initialize(): MacaoResult<PluginManager> {
override suspend fun initialize(): MacaoResult<PluginManager, InitializationError> {

// Example of a MacaoApplicationCallback Plugin, implemented in kotlin side
// But perfectly an interface pointing to a specific plaform implementation could
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.macaosoftware.component.demo

import com.macaosoftware.app.InitializationError
import com.macaosoftware.plugin.MacaoApplicationCallback
import com.macaosoftware.app.PluginFactory
import com.macaosoftware.app.PluginManager
Expand All @@ -9,7 +10,7 @@ import platform.posix.exit

class IosPluginManagerInitializer(iosBridge: IosBridge) : PluginManagerInitializer {

override suspend fun initialize(): MacaoResult<PluginManager> {
override suspend fun initialize(): MacaoResult<PluginManager, InitializationError> {

// Example of a MacaoApplicationCallback Plugin, implemented in kotlin side
// But perfectly an interface pointing to a specific swift implementation could
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.macaosoftware.component.demo

import com.macaosoftware.app.InitializationError
import com.macaosoftware.plugin.MacaoApplicationCallback
import com.macaosoftware.app.PluginFactory
import com.macaosoftware.app.PluginManager
Expand All @@ -8,7 +9,7 @@ import com.macaosoftware.util.MacaoResult

class JsPluginManagerInitializer : PluginManagerInitializer {

override suspend fun initialize(): MacaoResult<PluginManager> {
override suspend fun initialize(): MacaoResult<PluginManager, InitializationError> {

val macaoAppCallbackPlugin = object : MacaoApplicationCallback {
override fun onExit() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.macaosoftware.component.demo

import com.macaosoftware.app.InitializationError
import com.macaosoftware.plugin.MacaoApplicationCallback
import com.macaosoftware.app.PluginFactory
import com.macaosoftware.app.PluginManager
Expand All @@ -8,7 +9,7 @@ import com.macaosoftware.util.MacaoResult

class WasmPluginManagerInitializer : PluginManagerInitializer {

override suspend fun initialize(): MacaoResult<PluginManager> {
override suspend fun initialize(): MacaoResult<PluginManager, InitializationError> {

val macaoAppCallbackPlugin = object : MacaoApplicationCallback {
override fun onExit() {
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dokkaVersion=1.8.10
kotlin.version=2.0.0

# compose version
compose.version=1.6.10
compose.version=1.6.11

# component-toolkit version
component-toolkit.version=0.6.10
component-toolkit.version=0.6.11

0 comments on commit d17b91b

Please sign in to comment.