-
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.
refactor: implement annotations and interfaces in kotlin
- Loading branch information
Showing
13 changed files
with
69 additions
and
83 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
This file was deleted.
Oops, something went wrong.
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
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
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
14 changes: 0 additions & 14 deletions
14
widget/core/src/main/java/xyz/tynn/astring/core/DialogInterfaceButton.java
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
widget/core/src/main/java/xyz/tynn/astring/core/ToastDuration.java
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
widget/core/src/main/kotlin/xyz/tynn/astring/core/DialogInterfaceButton.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,14 @@ | ||
// Copyright 2023 Christian Schmitz | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package xyz.tynn.astring.core | ||
|
||
import android.content.DialogInterface.BUTTON_NEGATIVE | ||
import android.content.DialogInterface.BUTTON_NEUTRAL | ||
import android.content.DialogInterface.BUTTON_POSITIVE | ||
import androidx.annotation.IntDef | ||
import kotlin.annotation.AnnotationRetention.SOURCE | ||
|
||
@Retention(SOURCE) | ||
@IntDef(BUTTON_POSITIVE, BUTTON_NEGATIVE, BUTTON_NEUTRAL) | ||
public annotation class DialogInterfaceButton |
13 changes: 13 additions & 0 deletions
13
widget/core/src/main/kotlin/xyz/tynn/astring/core/ToastDuration.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,13 @@ | ||
// Copyright 2023 Christian Schmitz | ||
// SPDX-License-Identifier: Apache-2.0 | ||
|
||
package xyz.tynn.astring.core | ||
|
||
import android.widget.Toast.LENGTH_LONG | ||
import android.widget.Toast.LENGTH_SHORT | ||
import androidx.annotation.IntDef | ||
import kotlin.annotation.AnnotationRetention.SOURCE | ||
|
||
@Retention(SOURCE) | ||
@IntDef(LENGTH_LONG, LENGTH_SHORT) | ||
public annotation class ToastDuration |