Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,20 @@ jobs:
with:
submodules: recursive

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '4.0.2'

- name: Setup Ninja
run: sudo apt-get install ninja-build

- name: Ninja Version
run: ninja --version

- uses: nttld/setup-ndk@v1
with:
ndk-version: r27c
ndk-version: r28b

- name: Get Commit Message
id: commitMessage
Expand Down Expand Up @@ -69,10 +80,11 @@ jobs:

- name: Build apk
id: buildAllApks
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
arguments: assembleRelease
gradle-version: wrapper
- name: AssembleRelease the project
run: ./gradlew assembleRelease

- name: Get JSON
id: metadataJson
Expand Down
20 changes: 16 additions & 4 deletions .github/workflows/playstore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,20 @@ jobs:
with:
submodules: recursive

- name: Setup cmake
uses: jwlawson/actions-setup-cmake@v2
with:
cmake-version: '4.0.2'

- name: Setup Ninja
run: sudo apt-get install ninja-build

- name: Ninja Version
run: ninja --version

- uses: nttld/setup-ndk@v1
with:
ndk-version: r27c
ndk-version: r28b

- name: Setup JDK
uses: actions/setup-java@v4
Expand Down Expand Up @@ -58,10 +69,11 @@ jobs:

- name: Build Bundle
id: buildBundle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: wrapper
arguments: bundleRelease
gradle-version: wrapper
- name: AssembleRelease the project
run: ./gradlew assembleRelease

- name: Sign artifact
id: signArtifact
Expand Down
6 changes: 6 additions & 0 deletions .idea/AndroidProjectSystem.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/deploymentTargetSelector.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/git_toolbox_blame.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions .idea/git_toolbox_prj.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions .idea/kotlinc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions .idea/material_theme_project_new.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ android {
applicationId = "de.dertyp7214.rboardpatcher"
minSdk = 23
targetSdk = 36
versionCode = 3401
versionCode = 3405
versionName = "3.4"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import java.io.File

class LoadThemeActivity : AppCompatActivity() {

private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview) }
private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview2) }
private val themes = arrayListOf<ThemeDataClass>()
private val adapter by lazy {
ThemeAdapter(this, themes, this::openPatchActivity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.graphics.Color
import android.os.Build
import android.os.Bundle
import android.view.View
import android.view.ViewGroup
import androidx.activity.SystemBarStyle
import androidx.activity.enableEdgeToEdge
import androidx.core.content.FileProvider
Expand Down Expand Up @@ -56,7 +57,7 @@ class MainActivity : BaseActivity() {
}
}
private val adapter by lazy { MainOptionAdapter(this, list) }
private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview) }
private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview2) }

private val sourceCode by lazy { findViewById<View>(R.id.sourceCode) }
private val patchesRepo by lazy { findViewById<View>(R.id.patchesRepo) }
Expand All @@ -80,7 +81,6 @@ class MainActivity : BaseActivity() {
}
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

storage.filePickerCallback = object : FilePickerCallback {
override fun onStoragePermissionDenied(requestCode: Int, files: List<DocumentFile>?) {}
override fun onCanceledByUser(requestCode: Int) {}
Expand Down Expand Up @@ -118,6 +118,7 @@ class MainActivity : BaseActivity() {
recyclerView.layoutManager = LinearLayoutManager(this)
recyclerView.setHasFixedSize(true)
recyclerView.adapter = adapter
recyclerView.setFocusable(false);

sourceCode.setOnClickListener { openUrl(getString(R.string.sourceCodeUrl)) }
patchesRepo.setOnClickListener { openUrl(getString(R.string.patchesRepoUrl)) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ import kotlin.collections.set
import kotlin.math.roundToInt

@SuppressLint("NotifyDataSetChanged", "SetTextI18n")
@SuppressWarnings("InvalidSetHasFixedSize")
class PatchActivity : BaseActivity() {

private val mutableLiveBitmap = MutableLiveData<Bitmap?>()
Expand Down Expand Up @@ -93,7 +94,7 @@ class PatchActivity : BaseActivity() {
private val shareTheme by lazy { findViewById<MaterialButton>(R.id.shareButton) }
private val searchBar by lazy { findViewById<SearchBar>(R.id.searchBar) }
private val chipContainer by lazy { findViewById<ChipContainer>(R.id.chipContainer) }
private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview) }
private val recyclerView by lazy { findViewById<RecyclerView>(R.id.recyclerview2) }
private val adapter by lazy {
PatchAdapter(this, list, unfiltered, { patchMeta ->
openDialog(R.layout.patch_info_popup, true) { dialog ->
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/layout/activity_load_theme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
android:fitsSystemWindows="true">

<androidx.recyclerview.widget.RecyclerView
android:id="@+id/recyclerview"
android:id="@+id/recyclerview2"
android:layout_width="0dp"
android:layout_height="0dp"
app:layout_constraintBottom_toBottomOf="parent"
Expand Down
Loading
Loading