refactor: update to aliucord-gradle 2
This commit is contained in:
parent
2b687cea21
commit
5df56646c7
20 changed files with 150 additions and 141 deletions
|
|
@ -3,6 +3,10 @@ import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
|
|||
version = "8.8.0"
|
||||
description = "Beta backport of ComponentsV2"
|
||||
|
||||
android {
|
||||
namespace = "moe.lava.corenary.componentsv2"
|
||||
}
|
||||
|
||||
aliucord {
|
||||
// Changelog of your plugin
|
||||
changelog.set("""
|
||||
|
|
@ -28,11 +32,12 @@ aliucord {
|
|||
* Initial release >w<
|
||||
""".trimIndent())
|
||||
|
||||
excludeFromUpdaterJson.set(false)
|
||||
deploy.set(true)
|
||||
}
|
||||
|
||||
//apply(plugin = "com.gradleup.shadow")
|
||||
apply(plugin = "com.github.johnrengelman.shadow") // remove when gradle 8
|
||||
apply {
|
||||
plugin(libs.plugins.shadow.get().pluginId)
|
||||
}
|
||||
|
||||
val shadowDir = File(buildDir, "intermediates/shadowed")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="moe.lava.awoocanary.componentsv2" />
|
||||
|
|
@ -1,5 +1,3 @@
|
|||
@file:Suppress("MISSING_DEPENDENCY_CLASS", "MISSING_DEPENDENCY_SUPERCLASS")
|
||||
|
||||
package com.aliucord.coreplugins.componentsv2.selectsheet
|
||||
|
||||
import android.os.Bundle
|
||||
|
|
@ -16,6 +14,7 @@ import com.discord.utilities.view.extensions.ViewExtensions
|
|||
import com.discord.utilities.view.recycler.MaxHeightRecyclerView
|
||||
import com.discord.widgets.botuikit.views.select.`SelectComponentBottomSheet$binding$2`
|
||||
import com.lytefast.flexinput.R
|
||||
import b.a.k.b as FormatUtils
|
||||
|
||||
internal class SelectSheet : AppBottomSheet {
|
||||
val entry: BotUiComponentV2Entry?
|
||||
|
|
@ -71,7 +70,7 @@ internal class SelectSheet : AppBottomSheet {
|
|||
|
||||
if (state.isMultiSelect) {
|
||||
subtitle.text =
|
||||
b.a.k.b.k(
|
||||
FormatUtils.k(
|
||||
this,
|
||||
R.h.message_select_component_select_requirement,
|
||||
arrayOf(state.minSelections),
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
@file:Suppress("MISSING_DEPENDENCY_CLASS", "MISSING_DEPENDENCY_SUPERCLASS")
|
||||
|
||||
package com.aliucord.coreplugins.componentsv2.selectsheet
|
||||
|
||||
import androidx.lifecycle.ViewModel
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
@file:Suppress("MISSING_DEPENDENCY_CLASS", "MISSING_DEPENDENCY_SUPERCLASS")
|
||||
|
||||
package com.aliucord.coreplugins.componentsv2.views
|
||||
|
||||
import android.content.Context
|
||||
|
|
|
|||
|
|
@ -18,11 +18,12 @@ aliucord {
|
|||
* Initial port >w< thanks @jedenastka
|
||||
""".trimIndent())
|
||||
|
||||
excludeFromUpdaterJson.set(false)
|
||||
deploy.set(true)
|
||||
}
|
||||
|
||||
//apply(plugin = "com.gradleup.shadow")
|
||||
apply(plugin = "com.github.johnrengelman.shadow") // remove when gradle 8
|
||||
apply {
|
||||
plugin(libs.plugins.shadow.get().pluginId)
|
||||
}
|
||||
|
||||
val shadowDir = File(buildDir, "intermediates/shadowed")
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest package="moe.lava.corenary.slashcommandsfix" />
|
||||
Loading…
Add table
Add a link
Reference in a new issue