Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions wakelock_plus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [Unreleased]
* Fix Android build on AGP 8 / Kotlin 2.2+ by setting Pigeon `KotlinOptions.package`
so generated API types are not left in the default package (fixes missing
`WakelockPlusPlugin` / `cannot find symbol` in `GeneratedPluginRegistrant`).

## [1.7.0]
* [#134](https://github.com/fluttercommunity/wakelock_plus/pull/134): fix(android): defer wakelock toggle when no activity is attached. Thanks [sadaqatdev](https://github.com/sadaqatdev).
* [#136](https://github.com/fluttercommunity/wakelock_plus/pull/136): Migrated plugin to Built-in Kotlin Gradle Plugin (KGP). Thanks [drmirk](https://github.com/drmirk).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package dev.fluttercommunity.plus.wakelock

import IsEnabledMessage
import ToggleMessage
import android.app.Activity
import android.view.WindowManager

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// See also: https://pub.dev/packages/pigeon
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")

package dev.fluttercommunity.plus.wakelock


import android.util.Log
import io.flutter.plugin.common.BasicMessageChannel
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package dev.fluttercommunity.plus.wakelock

import IsEnabledMessage
import ToggleMessage
import WakelockPlusApi

import io.flutter.embedding.engine.plugins.FlutterPlugin
import io.flutter.embedding.engine.plugins.activity.ActivityAware
import io.flutter.embedding.engine.plugins.activity.ActivityPluginBinding
Expand Down
5 changes: 4 additions & 1 deletion wakelock_plus/pigeons/messages.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ class IsEnabledMessage {
prefix: 'WAKELOCKPLUS',
headerIncludePath: './include/wakelock_plus/messages.g.h',
),
kotlinOptions: KotlinOptions(errorClassName: "WakelockPlusFlutterError"),
kotlinOptions: KotlinOptions(
errorClassName: "WakelockPlusFlutterError",
package: "dev.fluttercommunity.plus.wakelock",
),
kotlinOut:
'android/src/main/kotlin/dev/fluttercommunity/plus/wakelock/WakelockPlusMessages.g.kt',
),
Expand Down