Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
Signed-off-by: XhstormR <[email protected]>
  • Loading branch information
XhstormR committed Mar 31, 2021
1 parent b6e514d commit 5069201
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 14 deletions.
25 changes: 19 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@

# Created by https://www.gitignore.io/api/gradle,android,androidstudio,jetbrains+all
# Edit at https://www.gitignore.io/?templates=gradle,android,androidstudio,jetbrains+all
# Created by https://www.toptal.com/developers/gitignore/api/gradle,android,androidstudio,jetbrains+all
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,android,androidstudio,jetbrains+all

### Android ###
# Built application files
*.apk
*.aar
*.ap_
*.aab

Expand All @@ -18,7 +19,8 @@
bin/
gen/
out/
release/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/

# Gradle files
.gradle/
Expand Down Expand Up @@ -60,6 +62,7 @@ captures/

# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/

# Google Services (e.g. APIs or Firebase)
# google-services.json
Expand Down Expand Up @@ -92,10 +95,9 @@ output.json

# Replacement of .externalNativeBuild directories introduced
# with Android Studio 3.5.
.cxx/

### JetBrains+all ###
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
Expand Down Expand Up @@ -125,6 +127,9 @@ output.json
# When using Gradle or Maven with auto-import, you should exclude module files,
# since they will be recreated, and may cause churn. Uncomment if using
# auto-import.
# .idea/artifacts
# .idea/compiler.xml
# .idea/jarRepositories.xml
# .idea/modules.xml
# .idea/*.iml
# .idea/modules
Expand Down Expand Up @@ -227,6 +232,13 @@ gradle-app.setting
*~
*.swp

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
# google-services.json

# Android Patch

# External native build folder generated in Android Studio 2.2 and later
Expand All @@ -253,6 +265,7 @@ obj/
.idea/sqlDataSources.xml
.idea/dynamic.xml
.idea/uiDesigner.xml
.idea/jarRepositories.xml

# OS-specific files
.DS_Store
Expand Down Expand Up @@ -294,4 +307,4 @@ hs_err_pid*

!/gradle/wrapper/gradle-wrapper.jar

# End of https://www.gitignore.io/api/gradle,android,androidstudio,jetbrains+all
# End of https://www.toptal.com/developers/gitignore/api/gradle,android,androidstudio,jetbrains+all
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ dependencies {
compileOnly("de.robv.android.xposed:api:82")

implementation(kotlin("stdlib-jdk8", KotlinCompilerVersion.VERSION))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.3")

implementation("androidx.core:core-ktx:1.3.2")
implementation("androidx.preference:preference-ktx:1.1.1")
Expand All @@ -75,7 +75,7 @@ dependencies {
implementation("com.squareup.moshi:moshi:1.11.0")
kapt("com.squareup.moshi:moshi-kotlin-codegen:1.11.0")

implementation("com.github.topjohnwu.libsu:io:3.0.2")
implementation("com.github.topjohnwu.libsu:io:3.1.1")
}

/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ object BackendService {
suspend fun uploadDex(dexPayload: DexPayload) = doResponseAction {
val (appHash, payload) = dexPayload

val bytes = SuFileInputStream(payload).buffered().use { it.readBytes() }
val bytes = SuFileInputStream.open(payload).buffered().use { it.readBytes() }
val formData = RequestBody.create(OCTET_STREAM_TYPE, bytes)
.let { MultipartBody.Part.createFormData("file", payload.name, it) }

Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ buildscript {
maven("https://mirrors.huaweicloud.com/repository/maven")
}
dependencies {
classpath("com.android.tools.build:gradle:4.1.1")
classpath(kotlin("gradle-plugin", version = "1.4.21"))
classpath("com.android.tools.build:gradle:4.1.3")
classpath(kotlin("gradle-plugin", version = "1.4.32"))
}
}

plugins {
id("org.jlleitschuh.gradle.ktlint") version "9.4.1"
id("org.jlleitschuh.gradle.ktlint") version "10.0.0"
}

allprojects {
Expand All @@ -30,7 +30,7 @@ tasks {
}

withType<Wrapper> {
gradleVersion = "6.7"
gradleVersion = "6.8.2"
distributionType = Wrapper.DistributionType.ALL
}
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 5069201

Please sign in to comment.