mirror of
https://github.com/MenosGrante/Rekado
synced 2025-10-05 23:22:39 +02:00
Rekado 4.0.1
- Fixed: Can't add payloads from internal storage. - Updated: All bundled payloads to the latest versions.
This commit is contained in:
34
.gitignore
vendored
34
.gitignore
vendored
@@ -39,14 +39,7 @@ proguard/
|
|||||||
captures/
|
captures/
|
||||||
|
|
||||||
# IntelliJ
|
# IntelliJ
|
||||||
*.iml
|
.idea
|
||||||
.idea/workspace.xml
|
|
||||||
.idea/tasks.xml
|
|
||||||
.idea/gradle.xml
|
|
||||||
.idea/assetWizardSettings.xml
|
|
||||||
.idea/dictionaries
|
|
||||||
.idea/libraries
|
|
||||||
.idea/caches
|
|
||||||
|
|
||||||
# Keystore files
|
# Keystore files
|
||||||
# Uncomment the following line if you do not want to check your keystore files in.
|
# Uncomment the following line if you do not want to check your keystore files in.
|
||||||
@@ -117,25 +110,6 @@ obj/
|
|||||||
*.iws
|
*.iws
|
||||||
/out/
|
/out/
|
||||||
|
|
||||||
# User-specific configurations
|
|
||||||
.idea/caches/
|
|
||||||
.idea/libraries/
|
|
||||||
.idea/shelf/
|
|
||||||
.idea/.name
|
|
||||||
.idea/compiler.xml
|
|
||||||
.idea/copyright/profiles_settings.xml
|
|
||||||
.idea/encodings.xml
|
|
||||||
.idea/misc.xml
|
|
||||||
.idea/modules.xml
|
|
||||||
.idea/scopes/scope_settings.xml
|
|
||||||
.idea/vcs.xml
|
|
||||||
.idea/jsLibraryMappings.xml
|
|
||||||
.idea/datasources.xml
|
|
||||||
.idea/dataSources.ids
|
|
||||||
.idea/sqlDataSources.xml
|
|
||||||
.idea/dynamic.xml
|
|
||||||
.idea/uiDesigner.xml
|
|
||||||
|
|
||||||
# OS-specific files
|
# OS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.DS_Store?
|
.DS_Store?
|
||||||
@@ -180,4 +154,8 @@ fabric.properties
|
|||||||
|
|
||||||
### AndroidStudio Patch ###
|
### AndroidStudio Patch ###
|
||||||
|
|
||||||
!/gradle/wrapper/gradle-wrapper.jar
|
!/gradle/wrapper/gradle-wrapper.jar
|
||||||
|
|
||||||
|
|
||||||
|
# NDK
|
||||||
|
app/.cxx
|
19
Rekado.iml
Normal file
19
Rekado.iml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<module external.linked.project.id="Rekado" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
||||||
|
<component name="FacetManager">
|
||||||
|
<facet type="java-gradle" name="Java-Gradle">
|
||||||
|
<configuration>
|
||||||
|
<option name="BUILD_FOLDER_PATH" value="$MODULE_DIR$/build" />
|
||||||
|
<option name="BUILDABLE" value="false" />
|
||||||
|
</configuration>
|
||||||
|
</facet>
|
||||||
|
</component>
|
||||||
|
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_8" inherit-compiler-output="true">
|
||||||
|
<exclude-output />
|
||||||
|
<content url="file://$MODULE_DIR$">
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/.gradle" />
|
||||||
|
</content>
|
||||||
|
<orderEntry type="jdk" jdkName="1.8" jdkType="JavaSDK" />
|
||||||
|
<orderEntry type="sourceFolder" forTests="false" />
|
||||||
|
</component>
|
||||||
|
</module>
|
@@ -10,8 +10,8 @@ android {
|
|||||||
applicationId "com.pavelrekun.rekado"
|
applicationId "com.pavelrekun.rekado"
|
||||||
minSdkVersion minimumSDKVersion
|
minSdkVersion minimumSDKVersion
|
||||||
targetSdkVersion currentSDKVersion
|
targetSdkVersion currentSDKVersion
|
||||||
versionCode 70
|
versionCode 71
|
||||||
versionName "4.0"
|
versionName "4.0.1"
|
||||||
|
|
||||||
archivesBaseName = "[$versionName] Rekado [${versionCode}]"
|
archivesBaseName = "[$versionName] Rekado [${versionCode}]"
|
||||||
}
|
}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
package com.pavelrekun.rekado.screens.payload_fragment
|
package com.pavelrekun.rekado.screens.payload_fragment
|
||||||
|
|
||||||
|
import android.app.Activity
|
||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.view.View
|
import android.view.View
|
||||||
@@ -15,6 +16,7 @@ import com.pavelrekun.rekado.services.Constants
|
|||||||
import com.pavelrekun.rekado.services.Events
|
import com.pavelrekun.rekado.services.Events
|
||||||
import com.pavelrekun.rekado.services.utils.LoginUtils
|
import com.pavelrekun.rekado.services.utils.LoginUtils
|
||||||
import com.pavelrekun.rekado.services.dialogs.DialogsShower
|
import com.pavelrekun.rekado.services.dialogs.DialogsShower
|
||||||
|
import com.pavelrekun.rekado.services.extensions.extractFileName
|
||||||
import com.pavelrekun.rekado.services.extensions.viewBinding
|
import com.pavelrekun.rekado.services.extensions.viewBinding
|
||||||
import com.pavelrekun.rekado.services.payloads.PayloadDownloadHelper
|
import com.pavelrekun.rekado.services.payloads.PayloadDownloadHelper
|
||||||
import com.pavelrekun.rekado.services.payloads.PayloadHelper
|
import com.pavelrekun.rekado.services.payloads.PayloadHelper
|
||||||
@@ -81,6 +83,33 @@ class PayloadsFragment : BaseFragment(R.layout.fragment_payloads) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
|
||||||
|
super.onActivityResult(requestCode, resultCode, data)
|
||||||
|
|
||||||
|
if (requestCode == Constants.KEY_OPEN_PAYLOAD) {
|
||||||
|
when (resultCode) {
|
||||||
|
Activity.RESULT_OK -> data?.data?.let {
|
||||||
|
val name = it.extractFileName()
|
||||||
|
if (name != null) {
|
||||||
|
val inputStream = getBaseActivity().contentResolver.openInputStream(it)
|
||||||
|
|
||||||
|
if (inputStream != null) {
|
||||||
|
MemoryUtils.copyPayload(inputStream, name)
|
||||||
|
EventBus.getDefault().post(Events.UpdatePayloadsListEvent())
|
||||||
|
LoginUtils.info("Added new payload: $name")
|
||||||
|
} else {
|
||||||
|
Toast.makeText(requireContext(), R.string.helper_error_adding_payload, Toast.LENGTH_SHORT).show()
|
||||||
|
LoginUtils.error("Failed to add payload: $name")
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
Toast.makeText(requireContext(), R.string.helper_error_adding_payload, Toast.LENGTH_SHORT).show()
|
||||||
|
LoginUtils.error("Failed to add selected payload!")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun initList() {
|
private fun initList() {
|
||||||
MemoryUtils.parseBundledSchema()
|
MemoryUtils.parseBundledSchema()
|
||||||
|
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"timestamp":1586248849,
|
"timestamp": 1588755094,
|
||||||
"type": 0,
|
"type": 0,
|
||||||
"payloads":[
|
"payloads":[
|
||||||
{
|
{
|
||||||
@@ -10,12 +10,12 @@
|
|||||||
{
|
{
|
||||||
"title":"hekate.bin",
|
"title":"hekate.bin",
|
||||||
"downloadUrl": "https://pavelrekun.dev/payloads/hekate.bin",
|
"downloadUrl": "https://pavelrekun.dev/payloads/hekate.bin",
|
||||||
"version":"5.1.3"
|
"version":"5.2.1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"title":"fusee_primary.bin",
|
"title":"fusee_primary.bin",
|
||||||
"downloadUrl": "https://pavelrekun.dev/payloads/fusee_primary.bin",
|
"downloadUrl": "https://pavelrekun.dev/payloads/fusee_primary.bin",
|
||||||
"version":"0.10.5"
|
"version":"0.12.0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Binary file not shown.
Reference in New Issue
Block a user