-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from buffcow/main
feat(sign): use signflinger to sign archive instead of apksigner
- Loading branch information
Showing
35 changed files
with
589 additions
and
404 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
Binary file not shown.
Binary file not shown.
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
35 changes: 35 additions & 0 deletions
35
app/src/main/java/com/shapun/apkaabconverter/extension/ViewExt.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,35 @@ | ||
/** | ||
* view extension | ||
* | ||
* @author qingyu | ||
* <p> | ||
* Create on 2023/10/09 16:08 | ||
*/ | ||
|
||
@file:Suppress("unused") | ||
|
||
package com.shapun.apkaabconverter.extension | ||
|
||
import android.view.View | ||
import android.widget.EditText | ||
import com.google.android.material.textfield.TextInputLayout | ||
|
||
fun View.show() { | ||
visibility = View.VISIBLE | ||
} | ||
|
||
fun View.hide() { | ||
visibility = View.GONE | ||
} | ||
|
||
fun EditText.clearText() { | ||
text = null | ||
} | ||
|
||
fun TextInputLayout.error(msg: String?) { | ||
if (msg.isNullOrBlank()) clearError() else error = msg | ||
} | ||
|
||
fun TextInputLayout.clearError() { | ||
isErrorEnabled = false | ||
} |
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
Oops, something went wrong.