Skip to content

Commit

Permalink
Rekado 2.6.3
Browse files Browse the repository at this point in the history
- Updated Hekate to 4.9.1
- Added new theme - Olive
- Added link to my personal site
- Other UI improvements
  • Loading branch information
MenosGrante committed Apr 8, 2019
1 parent 9b0d09e commit 6a95b37
Show file tree
Hide file tree
Showing 23 changed files with 64 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ android {
applicationId "com.pavelrekun.rekado"
minSdkVersion minimumSDKVersion
targetSdkVersion currentSDKVersion
versionCode 37
versionName "2.6.2"
versionCode 38
versionName "2.6.3"
}

buildTypes {
Expand Down
Binary file modified app/libs/siga.aar
Binary file not shown.
Binary file modified app/src/main/assets/hekate.bin
Binary file not shown.
4 changes: 2 additions & 2 deletions app/src/main/java/com/pavelrekun/rekado/RekadoApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import android.annotation.SuppressLint
import android.app.Application
import com.pavelrekun.rekado.services.logs.LogHelper
import com.pavelrekun.rekado.services.payloads.PayloadHelper
import com.pavelrekun.siga.data.AccentColor
import com.pavelrekun.siga.data.Color
import com.pavelrekun.siga.data.Theme
import com.pavelrekun.siga.services.Siga
import io.paperdb.Paper
Expand All @@ -30,7 +30,7 @@ class RekadoApplication : Application() {
}

private fun configureThemeEngine() {
val defaultSetup = Siga.createDefaults().theme(Theme.DARK_DEFAULT).accentColor(AccentColor.LIGHT_BLUE_500)
val defaultSetup = Siga.createDefaults().theme(Theme.DARK_DEFAULT).accentColor(Color.LIGHT_BLUE_500)
Siga.init(this, defaultSetup)
}

Expand Down
14 changes: 14 additions & 0 deletions app/src/main/java/com/pavelrekun/rekado/base/BaseActivity.kt
Original file line number Diff line number Diff line change
@@ -1,18 +1,32 @@
package com.pavelrekun.rekado.base

import android.os.Build
import android.os.Bundle
import com.pavelrekun.rekado.R
import com.pavelrekun.rekado.screens.main_activity.MainActivity
import com.pavelrekun.rekado.services.utils.PreferencesUtils
import com.pavelrekun.siga.base.SigaActivity
import com.pavelrekun.siga.services.helpers.ColorsHelper
import com.pavelrekun.siga.services.helpers.DesignHelper

open class BaseActivity : SigaActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
PreferencesUtils.getPreferencesTheme()
super.onCreate(savedInstanceState)

initDesignRules()
}

override fun setTitle(titleResId: Int) {
supportActionBar?.title = getString(titleResId)
}

private fun initDesignRules() {
if (this is MainActivity) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O_MR1) {
DesignHelper.tintNavigationBar(this, ColorsHelper.resolveColorAttribute(this, R.attr.colorBackgroundSecondary))
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AboutView(private val activity: BaseActivity) : AboutContract.View {

override fun initClickListeners() {
activity.aboutLinkGitHubProject.setOnClickListener { Utils.openLink(activity, Constants.GITHUB_PROJECT_LINK) }
activity.aboutDeveloperPersonalSite.setOnClickListener { Utils.openLink(activity, Constants.PERSONAL_SITE_LINK) }
activity.aboutDeveloperGitHub.setOnClickListener { Utils.openLink(activity, Constants.GITHUB_PROFILE_LINK) }
activity.aboutDeveloperTwitter.setOnClickListener { Utils.openLink(activity, Constants.TWITTER_LINK) }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ package com.pavelrekun.rekado.services

object Constants {

const val UPDATE_CONFIG_LINK = "https://raw.githubusercontent.com/MenosGrante/Rekado/master/updater/update.xml"

const val HELP_RCM = "https://gbatemp.net/threads/the-ultimate-list-of-mods-to-enter-rcm.502145/"

const val GITHUB_PROJECT_LINK = "https://github.com/MenosGrante/Rekado"
const val GITHUB_PROFILE_LINK = "https://github.com/MenosGrante"

const val PERSONAL_SITE_LINK = "https://pavelrekun.dev"
const val TWITTER_LINK = "https://twitter.com/menosgrante"
const val DONATE_LINK = "https://www.buymeacoffee.com/pavelrekun"
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ object PreferencesUtils {

fun getPreferencesTheme() {
val preferences = androidx.preference.PreferenceManager.getDefaultSharedPreferences(RekadoApplication.instance.applicationContext)
val theme = preferences.getString("appearance_theme_night_mode", Theme.DARK_DEFAULT.id)
val theme = preferences.getString("appearance_interface_theme", Theme.DARK_DEFAULT.id)

Siga.config(RekadoApplication.instance.applicationContext).theme(Theme.findById(theme)).apply()
}
Expand Down
10 changes: 10 additions & 0 deletions app/src/main/res/drawable/ic_about_personal_site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!-- drawable/account_circle_outline.xml -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="24"
android:viewportHeight="24">
<path
android:fillColor="?attr/colorIcon"
android:pathData="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7.07,18.28C7.5,17.38 10.12,16.5 12,16.5C13.88,16.5 16.5,17.38 16.93,18.28C15.57,19.36 13.86,20 12,20C10.14,20 8.43,19.36 7.07,18.28M18.36,16.83C16.93,15.09 13.46,14.5 12,14.5C10.54,14.5 7.07,15.09 5.64,16.83C4.62,15.5 4,13.82 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,13.82 19.38,15.5 18.36,16.83M12,6C10.06,6 8.5,7.56 8.5,9.5C8.5,11.44 10.06,13 12,13C13.94,13 15.5,11.44 15.5,9.5C15.5,7.56 13.94,6 12,6M12,11A1.5,1.5 0 0,1 10.5,9.5A1.5,1.5 0 0,1 12,8A1.5,1.5 0 0,1 13.5,9.5A1.5,1.5 0 0,1 12,11Z" />
</vector>
19 changes: 19 additions & 0 deletions app/src/main/res/layout/activity_about.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,25 @@
android:layout_height="wrap_content"
android:text="@string/about_category_developer" />

<TextView
android:id="@+id/aboutDeveloperPersonalSite"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="?android:attr/selectableItemBackground"
android:clickable="true"
android:drawableStart="@drawable/ic_about_personal_site"
android:drawablePadding="16dp"
android:focusable="true"
android:gravity="center_vertical"
android:padding="16dp"
android:text="@string/about_developer_personal_site"
android:textColor="?android:attr/textColorPrimary" />

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:background="?attr/colorDivider" />

<TextView
android:id="@+id/aboutDeveloperGitHub"
android:layout_width="match_parent"
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<!-- Strings for About -->
<string name="about_category_information">Informacion</string>
<string name="about_category_developer">Desarrollador</string>
<string name="about_developer_personal_site">Sitio personal</string>
<string name="about_information_description">Aplicacion escrita en Kotlin y C++. Se utiliza para injectar los payloads en el Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<!-- Strings for About -->
<string name="about_category_information">Informations</string>
<string name="about_category_developer">Développeur</string>
<string name="about_developer_personal_site">Site personnel</string>
<string name="about_information_description">Application écrite en Kotlin et C++. Elle sert à injecter des payloads ou démarrer Lakka sur la Switch</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-in-rID/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<string name="navigation_about">Tentang</string>
<string name="navigation_instructions">Instruksi</string>
<string name="about_category_developer">Pengembang</string>
<string name="about_developer_personal_site">Situs pribadi</string>
<string name="dialog_negative">Batal</string>
<string name="dialog_file_chooser_payload_title">Pilih Muatan</string>
<string name="helper_error_file_payload_wrong">Apakah anda yakin telah memilih Muatan yang benar?</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<!-- Strings for About -->
<string name="about_category_information">Informazioni</string>
<string name="about_category_developer">Sviluppatore</string>
<string name="about_developer_personal_site">Sito personale</string>
<string name="about_information_description">Applicazione scritta in Kotlin e C++. Viene usata per iniettare payload su Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<!-- Strings for About -->
<string name="about_category_information">Informacje</string>
<string name="about_category_developer">Deweloper</string>
<string name="about_developer_personal_site">Osobista strona</string>
<string name="about_information_description">Aplikacja została napisana w Kotlin i C++. Jest używana żeby wkładać payloady na Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-pt-rBR/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Strings for About -->
<string name="about_category_information">Informações</string>
<string name="about_category_developer">Desenvolvedor</string>
<string name="about_developer_personal_site">Site pessoal</string>
<string name="about_information_description">Aplicativo usado para injeção de payloads em consoles Nintendo Switch. Código fonte escrito em Kotlin e C++.</string>

<!-- Strings for Instructions -->
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-pt-rPT/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
<string name="navigation_logs">Logs</string>
<string name="navigation_about">Sobre</string>
<string name="navigation_donate">Doar</string>
<string name="navigation_settings">Defenições</string>
<string name="navigation_settings">Definições</string>

<!-- Strings for About -->
<string name="about_category_information">Informação</string>
<string name="about_category_developer">Desenvolvedor</string>
<string name="about_developer_personal_site">Site pessoal</string>
<string name="about_information_description">Aplicação escrita em Kotlin e C++. É usada para injetar payloads na Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Strings for About -->
<string name="about_category_information">Информация</string>
<string name="about_category_developer">Разработчик</string>
<string name="about_developer_personal_site">Персональный сайт</string>
<string name="about_information_description">Приложение написано на Kotlin с использованием C++. Оно используется для инъекций загрузчиков на Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-uk/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Strings for About -->
<string name="about_category_information">Інформація</string>
<string name="about_category_developer">Розробник</string>
<string name="about_developer_personal_site">Персональний сайт</string>
<string name="about_information_description">Додаток написано на Kotlin з використанням C++. Воно використовується для ін\'єкцій завантажувачів на Nintendo Switch.</string>

<!-- Strings for Instructions -->
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<!-- Strings for About -->
<string name="about_category_information">信息</string>
<string name="about_category_developer">开发人员</string>
<string name="about_developer_personal_site">个人网站</string>
<string name="about_information_description">本应用使用 Kotlin 和 C++ 编程,他用于任天堂 Switch 加载 payloads。</string>
<!-- Strings for Instructions -->
<string name="instructions_category_cable">数据线</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
<string name="about_category_information">Information</string>
<string name="about_category_developer">Developer</string>
<string name="about_information_description">Application written in Kotlin and C++. It is used to inject payloads on the Nintendo Switch.</string>
<string name="about_developer_personal_site">Personal site</string>
<string name="about_developer_github" translatable="false">GitHub</string>
<string name="about_developer_twitter" translatable="false">Twitter</string>

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ext {
androidXOtherVersion = '1.0.0'
androidXConstraintLayoutVersion = '1.1.3'
materialComponentsVersion = '1.0.0'
materialDialogsVersion = '2.0.3'
materialDialogsVersion = '2.7.0'

assetCopier = '0.1.1'
paperVersion = '2.6'
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.3.1-all.zip

0 comments on commit 6a95b37

Please sign in to comment.