Skip to content

Commit 1a73303

Browse files
committed
wip
1 parent a7e3d4c commit 1a73303

File tree

11 files changed

+919
-33
lines changed

11 files changed

+919
-33
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.kotlin
12
# User-specific stuff
23
.idea/**/workspace.xml
34
.idea/**/tasks.xml

.idea/AndroidProjectSystem.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/caches/deviceStreaming.xml

Lines changed: 751 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/runConfigurations.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
2-
id("com.android.library").version("8.2.0-rc03").apply(false)
3-
kotlin("multiplatform").version("1.9.20").apply(false)
4-
id("io.gitlab.arturbosch.detekt") version "1.23.3"
5-
id("com.github.ben-manes.versions") version "0.50.0"
2+
id("com.android.library").version("8.10.0").apply(false)
3+
kotlin("multiplatform").version("2.1.21").apply(false)
4+
id("io.gitlab.arturbosch.detekt") version "1.23.8"
5+
id("com.github.ben-manes.versions") version "0.52.0"
66
}
77

88
tasks.register("clean", Delete::class) {
@@ -14,11 +14,6 @@ allprojects {
1414
google()
1515
mavenCentral()
1616
gradlePluginPortal()
17-
maven("https://jitpack.io") {
18-
content {
19-
includeGroup("com.github.hbmartin")
20-
}
21-
}
2217
}
2318
apply(plugin = "io.gitlab.arturbosch.detekt")
2419
detekt {
@@ -33,10 +28,10 @@ allprojects {
3328
}
3429
}
3530
dependencies {
36-
val detektVersion = "1.23.3"
31+
val detektVersion = "1.23.8"
3732
detektPlugins("io.gitlab.arturbosch.detekt:detekt-rules-libraries:$detektVersion")
3833
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:$detektVersion")
3934
detektPlugins("com.braisgabin.detekt:kotlin-compiler-wrapper:0.0.4")
40-
detektPlugins("com.github.hbmartin:hbmartin-detekt-rules:0.1.3")
35+
detektPlugins("com.github.hbmartin:hbmartin-detekt-rules:0.1.7")
4136
}
4237
}

gradle/libs.versions.toml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
[versions]
2+
agp = "8.10.0"
3+
kotlin = "2.1.21"
4+
detekt = "1.23.8"
5+
hbmartinRules = "0.1.7"
6+
jbAnnotations = "26.0.2"
7+
bignum = "0.3.10"
8+
cryptoRandom = "0.5.0"
9+
cryptoMacs = "0.7.0"
10+
11+
[libraries]
12+
detekt-formatting = { group = "io.gitlab.arturbosch.detekt", name = "detekt-formatting", version.ref = "detekt" }
13+
detekt-hbmartin = { group = "me.haroldmartin", name = "hbmartin-detekt-rules", version.ref = "hbmartinRules" }
14+
jetbrainsAnnotations = { group = "org.jetbrains", name = "annotations", version.ref = "jbAnnotations" }
15+
bignum = { group = "com.ionspin.kotlin", name = "bignum", version.ref = "bignum" }
16+
crypto-random = { group = "org.kotlincrypto", name = "random", version.ref = "cryptoRandom" }
17+
crypto-macs = { group = "org.kotlincrypto", name = "macs", version.ref = "cryptoMacs" }
18+
19+
implementation(platform("org.kotlincrypto.macs:bom:0.3.0"))
20+
implementation("org.kotlincrypto.macs:hmac-sha2")
21+
implementation(platform("org.kotlincrypto.hash:bom:0.3.0"))
22+
implementation("org.kotlincrypto.hash:sha2")
23+
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.4.1")
24+
implementation("io.ktor:ktor-client-core:2.3.6")
25+
26+
[plugins]
27+
android-library = { id = "com.android.library", version.ref = "agp" }
28+
detekt = { id = "io.gitlab.arturbosch.detekt", version.ref = "detekt" }
29+
hbmartinRules = { id = "com.hbmartin.rules", version.ref = "hbmartinRules" }

gradle/wrapper/gradle-wrapper.jar

-19.2 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -83,7 +85,8 @@ done
8385
# This is normally unused
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
86-
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
88+
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
8790

8891
# Use the maximum available, or set MAX_FD != -1 to use that value.
8992
MAX_FD=maximum
@@ -111,7 +114,7 @@ case "$( uname )" in #(
111114
NONSTOP* ) nonstop=true ;;
112115
esac
113116

114-
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
117+
CLASSPATH="\\\"\\\""
115118

116119

117120
# Determine the Java command to use to start the JVM.
@@ -144,15 +147,15 @@ if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
144147
case $MAX_FD in #(
145148
max*)
146149
# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked.
147-
# shellcheck disable=SC3045
150+
# shellcheck disable=SC2039,SC3045
148151
MAX_FD=$( ulimit -H -n ) ||
149152
warn "Could not query maximum file descriptor limit"
150153
esac
151154
case $MAX_FD in #(
152155
'' | soft) :;; #(
153156
*)
154157
# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked.
155-
# shellcheck disable=SC3045
158+
# shellcheck disable=SC2039,SC3045
156159
ulimit -n "$MAX_FD" ||
157160
warn "Could not set maximum file descriptor limit to $MAX_FD"
158161
esac
@@ -201,16 +204,16 @@ fi
201204
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
202205
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
203206

204-
# Collect all arguments for the java command;
205-
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
206-
# shell script including quotes and variable substitutions, so put them in
207-
# double quotes to make sure that they get re-expanded; and
208-
# * put everything else in single quotes, so that it's not re-expanded.
207+
# Collect all arguments for the java command:
208+
# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
209+
# and any embedded shellness will be escaped.
210+
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
211+
# treated as '${Hostname}' itself on the command line.
209212

210213
set -- \
211214
"-Dorg.gradle.appname=$APP_BASE_NAME" \
212215
-classpath "$CLASSPATH" \
213-
org.gradle.wrapper.GradleWrapperMain \
216+
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
214217
"$@"
215218

216219
# Stop when "xargs" is not available.

0 commit comments

Comments
 (0)