build: (deps): bump unifiedpush from 5.0.2 to 6.0.2
Bumps unifiedpush from 5.0.2 to 6.0.2. --- updated-dependencies: - dependency-name: unifiedpush dependency-version: 6.0.2 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>pull/2053/head
parent
d879c27e3a
commit
1503f89357
@ -1,23 +0,0 @@
|
|||||||
package chat.fluffy.fluffychat
|
|
||||||
|
|
||||||
import io.flutter.embedding.engine.FlutterEngine
|
|
||||||
import io.flutter.embedding.engine.dart.DartExecutor
|
|
||||||
import org.unifiedpush.flutter.connector.UnifiedPushReceiver
|
|
||||||
|
|
||||||
import android.content.Context
|
|
||||||
|
|
||||||
class UnifiedPushReceiver : UnifiedPushReceiver() {
|
|
||||||
override fun getEngine(context: Context): FlutterEngine {
|
|
||||||
var engine = MainActivity.engine
|
|
||||||
if (engine == null) {
|
|
||||||
engine = MainActivity.provideEngine(context)
|
|
||||||
engine.localizationPlugin.sendLocalesToFlutter(
|
|
||||||
context.resources.configuration
|
|
||||||
)
|
|
||||||
engine.dartExecutor.executeDartEntrypoint(
|
|
||||||
DartExecutor.DartEntrypoint.createDefault()
|
|
||||||
)
|
|
||||||
}
|
|
||||||
return engine
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue