forked from permissions-dispatcher/PermissionsDispatcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reason for the change: Based on the issue: permissions-dispatcher#779 Bug reason: When upgrading Kotlin or base library versions, some libraries that use KotlinPoet may also be upgraded to version 1.11 or higher. KotlinPoet 1.11.0 has the following release note: • Fix: Enforce only allowed parameter modifiers in ParameterSpec (i.e. crossinline, vararg, and noinline). For more details, please refer to: https://github.com/square/kotlinpoet/releases When generating the PermissionRequest class for methods annotated with @NeedsPermission, the private constructor will cause an error. Reproduction steps: Upgrade KotlinPoet to 1.11.0 Add a new parameter "callback" to the MainActivity#showCamera method in the sample Modification: Do not pass the KModifier.*PRIVATE parameter
- Loading branch information
chenglei01
committed
Nov 10, 2023
1 parent
74b532b
commit 778b91b
Showing
4 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
sample/src/main/kotlin/permissions/dispatcher/sample/Callback.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package permissions.dispatcher.sample | ||
|
||
/** | ||
* @author chenglei01 | ||
* @date 2023/11/10 | ||
* @time 12:03 | ||
*/ | ||
interface Callback { | ||
fun onSuccess() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters