mirror of
https://github.com/InsanusMokrassar/KSLog.git
synced 2026-09-02 14:19:35 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3fb8731f0a | |||
| bd34d84095 | |||
| 42b56fdf99 | |||
| cd63889a34 | |||
| 892ccd442b | |||
| dac23a366b | |||
| f8d6591c86 | |||
| ddb0202069 | |||
| fa16f7f5d3 | |||
| d37630c1d4 | |||
| e0e97292aa | |||
| 22b22c48f4 | |||
| 52f18b234d | |||
| 4d9708b53f | |||
| 91f3516c8f |
13
CHANGELOG.md
13
CHANGELOG.md
@@ -1,5 +1,18 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.0.0
|
||||||
|
|
||||||
|
* `Versions`:
|
||||||
|
* `Kotlin`: `2.3.21` -> `2.4.10`
|
||||||
|
|
||||||
|
## 1.7.0
|
||||||
|
|
||||||
|
* `Kotlin`: `2.3.21`
|
||||||
|
|
||||||
|
## 1.6.1
|
||||||
|
|
||||||
|
* `Kotlin`: `2.3.20`
|
||||||
|
|
||||||
## 1.6.0
|
## 1.6.0
|
||||||
|
|
||||||
* `Kotlin`: `2.3.0`
|
* `Kotlin`: `2.3.0`
|
||||||
|
|||||||
16
build.gradle
16
build.gradle
@@ -23,7 +23,7 @@ plugins {
|
|||||||
alias(libs.plugins.nmcp.aggregation)
|
alias(libs.plugins.nmcp.aggregation)
|
||||||
}
|
}
|
||||||
|
|
||||||
apply plugin: "com.android.library"
|
apply plugin: "com.android.kotlin.multiplatform.library"
|
||||||
apply from: "defaultAndroidSettings.gradle"
|
apply from: "defaultAndroidSettings.gradle"
|
||||||
|
|
||||||
apply from: "github_release.gradle"
|
apply from: "github_release.gradle"
|
||||||
@@ -65,16 +65,10 @@ kotlin {
|
|||||||
browser()
|
browser()
|
||||||
nodejs()
|
nodejs()
|
||||||
}
|
}
|
||||||
androidTarget {
|
android {
|
||||||
publishLibraryVariants(
|
project.ext.configureAndroidTarget(delegate)
|
||||||
"release",
|
withHostTest {}
|
||||||
"debug",
|
withDeviceTest {}
|
||||||
)
|
|
||||||
compilations.all {
|
|
||||||
kotlinOptions {
|
|
||||||
jvmTarget = "17"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
linuxArm64()
|
linuxArm64()
|
||||||
linuxArm32Hfp()
|
linuxArm32Hfp()
|
||||||
|
|||||||
@@ -1,63 +1,18 @@
|
|||||||
apply plugin: 'com.getkeepsafe.dexcount'
|
apply plugin: 'com.getkeepsafe.dexcount'
|
||||||
|
|
||||||
android {
|
ext.configureAndroidTarget = { target ->
|
||||||
ext {
|
target.compileSdk = libs.versions.android.compileSdk.get().toInteger()
|
||||||
jvmKotlinFolderFile = {
|
target.buildToolsVersion = libs.versions.android.buildTools.get()
|
||||||
String sep = File.separator
|
target.minSdk = libs.versions.android.minSdk.get().toInteger()
|
||||||
return new File("${project.projectDir}${sep}src${sep}jvmMain${sep}kotlin")
|
target.namespace = "${group}.${project.name}"
|
||||||
}
|
target.packaging {
|
||||||
|
resources {
|
||||||
enableIncludingJvmCodeInAndroidPart = {
|
excludes.add 'META-INF/kotlinx-serialization-runtime.kotlin_module'
|
||||||
File jvmKotlinFolder = jvmKotlinFolderFile()
|
excludes.add 'META-INF/kotlinx-serialization-cbor.kotlin_module'
|
||||||
if (jvmKotlinFolder.exists()) {
|
excludes.add 'META-INF/kotlinx-serialization-properties.kotlin_module'
|
||||||
android.sourceSets.main.java.srcDirs += jvmKotlinFolder.path
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
disableIncludingJvmCodeInAndroidPart = {
|
|
||||||
File jvmKotlinFolder = jvmKotlinFolderFile()
|
|
||||||
String[] oldDirs = android.sourceSets.main.java.srcDirs
|
|
||||||
android.sourceSets.main.java.srcDirs = []
|
|
||||||
for (oldDir in oldDirs) {
|
|
||||||
if (oldDir != jvmKotlinFolder.path) {
|
|
||||||
android.sourceSets.main.java.srcDirs += oldDir
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
target.compilerOptions.jvmTarget.set(
|
||||||
compileSdk libs.versions.android.compileSdk.get().toInteger()
|
target.compilerOptions.jvmTarget.get().class.fromTarget("17")
|
||||||
buildToolsVersion = libs.versions.android.buildTools.get()
|
)
|
||||||
namespace "${group}.${project.name}"
|
|
||||||
|
|
||||||
defaultConfig {
|
|
||||||
minSdkVersion libs.versions.android.minSdk.get().toInteger()
|
|
||||||
targetSdkVersion libs.versions.android.compileSdk.get().toInteger()
|
|
||||||
versionCode "${android_code_version}".toInteger()
|
|
||||||
versionName "$version"
|
|
||||||
}
|
|
||||||
buildTypes {
|
|
||||||
release {
|
|
||||||
minifyEnabled false
|
|
||||||
}
|
|
||||||
debug {
|
|
||||||
debuggable true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
packagingOptions {
|
|
||||||
exclude 'META-INF/kotlinx-serialization-runtime.kotlin_module'
|
|
||||||
exclude 'META-INF/kotlinx-serialization-cbor.kotlin_module'
|
|
||||||
exclude 'META-INF/kotlinx-serialization-properties.kotlin_module'
|
|
||||||
}
|
|
||||||
|
|
||||||
compileOptions {
|
|
||||||
sourceCompatibility JavaVersion.VERSION_17
|
|
||||||
targetCompatibility JavaVersion.VERSION_17
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
String sep = File.separator
|
|
||||||
main.java.srcDirs += "src${sep}main${sep}kotlin"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
|
interface InjectedExecOps {
|
||||||
|
@Inject //@javax.inject.Inject
|
||||||
|
ExecOperations getExecOps()
|
||||||
|
}
|
||||||
private String getCurrentVersionChangelog() {
|
private String getCurrentVersionChangelog() {
|
||||||
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
OutputStream changelogDataOS = new ByteArrayOutputStream()
|
||||||
exec {
|
|
||||||
|
def injected = project.objects.newInstance(InjectedExecOps)
|
||||||
|
injected.execOps.exec {
|
||||||
commandLine 'chmod', "+x", './changelog_parser.sh'
|
commandLine 'chmod', "+x", './changelog_parser.sh'
|
||||||
}
|
}
|
||||||
exec {
|
injected.execOps.exec {
|
||||||
standardOutput = changelogDataOS
|
standardOutput = changelogDataOS
|
||||||
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
commandLine './changelog_parser.sh', "${project.version}", 'CHANGELOG.md'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,14 +1,12 @@
|
|||||||
kotlin.code.style=official
|
kotlin.code.style=official
|
||||||
org.gradle.parallel=true
|
org.gradle.parallel=true
|
||||||
kotlin.js.generate.externals=true
|
|
||||||
kotlin.incremental=true
|
kotlin.incremental=true
|
||||||
kotlin.incremental.js=true
|
kotlin.incremental.js=true
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
|
||||||
org.gradle.jvmargs=-Xmx512m
|
org.gradle.jvmargs=-Xmx512m
|
||||||
|
|
||||||
# Project data
|
# Project data
|
||||||
|
|
||||||
group=dev.inmo
|
group=dev.inmo
|
||||||
version=1.6.0
|
version=2.0.0
|
||||||
android_code_version=40
|
android_code_version=43
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
kotlin = "2.3.0"
|
kotlin = "2.4.10"
|
||||||
kotlin-gradle-plugin = "8.12.+"
|
android-gradle-plugin = "9.1.1"
|
||||||
|
|
||||||
nmcp = "1.4.3"
|
nmcp = "1.6.1"
|
||||||
versions = "0.53.0"
|
versions = "0.61.0"
|
||||||
|
|
||||||
dokka = "2.1.0"
|
dokka = "2.2.0"
|
||||||
|
|
||||||
dexcount = "4.0.0"
|
dexcount = "4.0.0"
|
||||||
junit_version = "4.12"
|
junit_version = "4.13.2"
|
||||||
test_ext_junit_version = "1.3.0"
|
test_ext_junit_version = "1.3.0"
|
||||||
espresso_core = "3.7.0"
|
espresso_core = "3.7.0"
|
||||||
|
|
||||||
android-minSdk = "21"
|
android-minSdk = "21"
|
||||||
android-compileSdk = "36"
|
android-compileSdk = "37"
|
||||||
android-buildTools = "36.0.0"
|
android-buildTools = "37.0.0"
|
||||||
|
|
||||||
github-release = "2.5.2"
|
github-release = "2.5.2"
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ android-test-espresso-core = { module = "androidx.test.espresso:espresso-core",
|
|||||||
|
|
||||||
# buildscript classpaths
|
# buildscript classpaths
|
||||||
|
|
||||||
android-tools-build = { module = "com.android.tools.build:gradle", version.ref = "kotlin-gradle-plugin" }
|
android-tools-build = { module = "com.android.tools.build:gradle", version.ref = "android-gradle-plugin" }
|
||||||
android-dexcount = { module = "com.getkeepsafe.dexcount:dexcount-gradle-plugin", version.ref = "dexcount" }
|
android-dexcount = { module = "com.getkeepsafe.dexcount:dexcount-gradle-plugin", version.ref = "dexcount" }
|
||||||
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
kotlin-gradle-plugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" }
|
||||||
kotlin-dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
|
kotlin-dokka-plugin = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "dokka" }
|
||||||
@@ -42,6 +42,6 @@ github-release = { module = "com.github.breadmoirai:github-release", version.ref
|
|||||||
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
|
kotlin-multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
|
||||||
kotlin-dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
|
kotlin-dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
|
||||||
|
|
||||||
versions = { id = "com.github.ben-manes.versions", version.ref = "versions" }
|
versions = { id = "io.github.ben-manes.versions", version.ref = "versions" }
|
||||||
|
|
||||||
nmcp-aggregation = { id = "com.gradleup.nmcp.aggregation", version.ref = "nmcp" }
|
nmcp-aggregation = { id = "com.gradleup.nmcp.aggregation", version.ref = "nmcp" }
|
||||||
|
|||||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -1,5 +1,5 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.0-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|||||||
Reference in New Issue
Block a user