-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
why
committed
Apr 18, 2024
1 parent
5eb7019
commit 3d132ff
Showing
10 changed files
with
506 additions
and
56 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 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
23 changes: 23 additions & 0 deletions
23
lib-common/src/main/java/com/xiaoyv/common/config/annotation/SubtitleActionType.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,23 @@ | ||
package com.xiaoyv.common.config.annotation | ||
|
||
import androidx.annotation.IntDef | ||
|
||
/** | ||
* Class: [SubtitleActionType] | ||
* | ||
* @author why | ||
* @since 11/25/23 | ||
*/ | ||
@IntDef( | ||
SubtitleActionType.TYPE_SHARE, | ||
SubtitleActionType.TYPE_COPY, | ||
SubtitleActionType.TYPE_TRANSLATE, | ||
) | ||
@Retention(AnnotationRetention.SOURCE) | ||
annotation class SubtitleActionType { | ||
companion object { | ||
const val TYPE_SHARE = 1 | ||
const val TYPE_COPY = 2 | ||
const val TYPE_TRANSLATE = 3 | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
lib-common/src/main/java/com/xiaoyv/common/config/bean/SubtitleResult.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,15 @@ | ||
package com.xiaoyv.common.config.bean | ||
|
||
import android.os.Parcelable | ||
import com.xiaoyv.common.config.annotation.SubtitleActionType | ||
import com.xiaoyv.subtitle.api.subtitle.common.TimedLine | ||
import com.xiaoyv.subtitle.api.subtitle.common.TimedTextFile | ||
import kotlinx.parcelize.Parcelize | ||
import java.io.File | ||
|
||
@Parcelize | ||
data class SubtitleResult( | ||
var file: File, | ||
var timedTextFile: TimedTextFile<out TimedLine>, | ||
@SubtitleActionType var actionType: Int | ||
) : Parcelable |
Oops, something went wrong.