Skip to content

Commit

Permalink
V0.2.2 (#48)
Browse files Browse the repository at this point in the history
* * init
* updated Compose to latest version

* * Made Compose Foundation a compileOnly dependency
* Deleted unnecessary AndroidMain Compose dependency
* Updated README.md to reflect new method of implementation

* * Made Compose Foundation a compileOnly dependency
* Deleted unnecessary AndroidMain Compose dependency
* Updated README.md to reflect new method of implementation

* * Upgraded the Javascript compiler to IR
* added JS dependency on org.jetbrains.compose.html:html-core
* added API calls to compose compileOnly dependencies

* disabled javascript for basic-images until ImageBitmap is figured out.

* Reverted to Kotlin 2.0.21 to stop requiring users to implement beta features.

* Updating Dokka

* Updated documentation to reflect kotlin 2.0.21

* Updated documentation to reflect kotlin 2.1.0

* * init
* updated Compose to latest version

* * Made Compose Foundation a compileOnly dependency
* Deleted unnecessary AndroidMain Compose dependency
* Updated README.md to reflect new method of implementation

* * Made Compose Foundation a compileOnly dependency
* Deleted unnecessary AndroidMain Compose dependency
* Updated README.md to reflect new method of implementation

* * Upgraded the Javascript compiler to IR
* added JS dependency on org.jetbrains.compose.html:html-core
* added API calls to compose compileOnly dependencies

* disabled javascript for basic-images until ImageBitmap is figured out.

* Reverted to Kotlin 2.0.21 to stop requiring users to implement beta features.

* Updating Dokka

* Updated documentation to reflect kotlin 2.0.21

* Updated documentation to reflect kotlin 2.1.0
  • Loading branch information
robertjamison authored Nov 29, 2024
1 parent 657f7ff commit 30ca45c
Show file tree
Hide file tree
Showing 171 changed files with 236 additions and 199 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

![GitHub License](https://img.shields.io/github/license/lexilabs-app/basic)
![GitHub Release Date](https://img.shields.io/github/release-date/lexilabs-app/basic)
[![Kotlin](https://img.shields.io/badge/Kotlin-2.1.0--RC2-7f52ff.svg?style=flat&logo=kotlin)](https://kotlinlang.org)
[![Kotlin](https://img.shields.io/badge/Kotlin-2.1.0-7f52ff.svg?style=flat&logo=kotlin)](https://kotlinlang.org)

A Kotlin Multiplatform library to rapidly add basic features like pictures, logging, and audio to any project in a small and fast way.

Expand Down Expand Up @@ -32,7 +32,7 @@ Add your dependencies from Maven
```toml
# in your 'gradle/libs.versions.toml' file
[versions]
kotlin = "2.1.0-RC2" # Updated Kotlin version required for Basic-Sound due to hotfix for reading Compose Resources
kotlin = "2.1.0" # Updated Kotlin version required for Basic-Sound due to hotfix for reading Compose Resources
lexilabs-basic = "+" # gets the latest version

[libraries]
Expand Down
11 changes: 11 additions & 0 deletions basic-ads/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,28 @@ Add your dependencies from Maven
```toml
# in your 'libs.versions.toml' file
[versions]
kotlin = "2.1.0"
compose = "+" # gets the latest version
lexilabs-basic = "+" # gets the latest version
google-play-services-ads = "+" # you did this during the preparation step

[libraries]
lexilabs-basic-images = { module = "app.lexilabs.basic:basic-ads", version.ref = "lexilabs-basic"}
google-play-services-ads = { module = "com.google.android.gms:play-services-ads", version.ref = "google-play-services-ads"}

[plugins] # make sure you're using the JetBrains plugin to import your composables
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
```

then include the library in your gradle build
```kotlin
// in your 'composeApp/build.gradle.kts' file
plugins {
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.compose.compiler)
}

sourceSets {
commonMain.dependencies {
implementation(libs.lexilabs.basic.ads)
Expand Down
8 changes: 3 additions & 5 deletions basic-ads/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
Expand Down Expand Up @@ -46,12 +46,12 @@ kotlin {

sourceSets {
commonMain.dependencies {
implementation(libs.compose.foundation)
compileOnly(libs.compose.foundation)
api(libs.compose.foundation)
implementation(libs.annotations)
implementation(project(":basic-logging"))
}
androidMain.dependencies {
implementation(libs.compose.ui)
compileOnly(libs.google.play.services.ads)
}
iosMain.dependencies {}
Expand All @@ -66,8 +66,6 @@ kotlin {
}
}

// https://youtrack.jetbrains.com/issue/KT-61573
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
Expand Down
11 changes: 11 additions & 0 deletions basic-images/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,25 @@ Add your dependencies from Maven
```toml
# in your 'libs.versions.toml' file
[versions]
kotlin = "2.1.0" # gets the latest version, but MUST BE 2.1.0 OR HIGHER
compose = "+" # gets the latest version
lexilabs-basic = "+" #gets the latest version

[libraries]
lexilabs-basic-images = { module = "app.lexilabs.basic:basic-images", version.ref = "lexilabs-basic"}

[plugins] # make sure you're using the JetBrains plugin to import your composables
jetbrainsCompose = { id = "org.jetbrains.compose", version.ref = "compose" }
compose-compiler = { id = "org.jetbrains.kotlin.plugin.compose", version.ref = "kotlin" }
```
then include the library in your gradle build
```kotlin
// in your 'shared/build.gradle.kts' file
plugins {
alias(libs.plugins.jetbrainsCompose)
alias(libs.plugins.compose.compiler)
}

sourceSets {
commonMain.dependencies {
implementation(libs.lexilabs.basic.images)
Expand Down
28 changes: 18 additions & 10 deletions basic-images/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
Expand All @@ -19,15 +19,22 @@ kotlin {

jvm()

// js {
// js(IR) {
// binaries.executable()
// browser {
// webpackTask {
// mainOutputFileName = "shared.js"
// commonWebpackConfig {
// cssSupport {
// enabled.set(true)
// }
// }
// testTask {
// useKarma {
// useChromeHeadless()
// }
// }
// }
// binaries.executable()
// }
//

// @OptIn(ExperimentalWasmDsl::class)
// wasmJs {
// browser()
Expand Down Expand Up @@ -70,7 +77,8 @@ kotlin {
sourceSets {
commonMain.dependencies {
implementation(project(":basic-logging"))
implementation(libs.compose.foundation)
compileOnly(libs.compose.foundation)
api(libs.compose.foundation)
implementation(libs.compose.material3)
implementation(libs.ktor.client.core)
implementation(libs.ktor.client.resources)
Expand All @@ -92,7 +100,9 @@ kotlin {
// implementation(libs.ktor.client.ios)
// }
// jvmMain.dependencies {}
// jsMain.dependencies {}
// jsMain.dependencies {
// implementation(libs.compose.html)
// }
// wasmJsMain.dependencies {}
// linuxMain.dependencies {}
// mingwMain.dependencies {}
Expand All @@ -107,8 +117,6 @@ kotlin {
}
}

// https://youtrack.jetbrains.com/issue/KT-61573
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
Expand Down
19 changes: 12 additions & 7 deletions basic-logging/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
Expand All @@ -22,13 +22,20 @@ kotlin {

jvm()

js {
js(IR) {
binaries.executable()
browser {
webpackTask {
mainOutputFileName = "shared.js"
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
testTask {
useKarma {
useChromeHeadless()
}
}
}
binaries.executable()
}

@OptIn(ExperimentalWasmDsl::class)
Expand Down Expand Up @@ -93,8 +100,6 @@ kotlin {
}
}

// https://youtrack.jetbrains.com/issue/KT-61573
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
Expand Down
2 changes: 1 addition & 1 deletion basic-sound/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ You'll need to add your maven dependency list
```toml
# in your 'libs.versions.toml' file
[versions]
kotlin = "2.1.0-RC2" # Updated Kotlin version required due to hotfix for Composable Resources
kotlin = "2.1.0" # Updated Kotlin version required due to Composable Resources
lexilabs-basic = "+" # gets the latest version

[libraries]
Expand Down
21 changes: 13 additions & 8 deletions basic-sound/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import org.jetbrains.kotlin.gradle.ExperimentalKotlinGradlePluginApi
import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinVersion
import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget

plugins {
Expand All @@ -17,13 +17,20 @@ kotlin {
// FORCES CHECK OF PUBLIC API DECLARATIONS
explicitApi()

js {
js(IR) {
binaries.executable()
browser {
webpackTask {
mainOutputFileName = "shared.js"
commonWebpackConfig {
cssSupport {
enabled.set(true)
}
}
testTask {
useKarma {
useChromeHeadless()
}
}
}
binaries.executable()
}

@OptIn(ExperimentalWasmDsl::class)
Expand Down Expand Up @@ -81,8 +88,6 @@ kotlin {
}
}

// https://youtrack.jetbrains.com/issue/KT-61573
@OptIn(ExperimentalKotlinGradlePluginApi::class)
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
}
Expand Down Expand Up @@ -111,4 +116,4 @@ android {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
}
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildscript {

allprojects {
group = "app.lexilabs.basic"
version = "0.2.1"
version = "0.2.2"

apply(plugin = "org.jetbrains.dokka")
apply(plugin = "maven-publish")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector common-like" data-active="" data-filter=":basic-ads:dokkaHtml/iosMain">ios</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
</a>
</div>
<div class="library-version">
0.2.1 </div>
0.2.2 </div>
</div>
<div class="filter-section" id="filter-section">
<button class="platform-tag platform-selector jvm-like" data-active="" data-filter=":basic-ads:dokkaHtml/androidMain">android</button>
Expand Down
Loading

0 comments on commit 30ca45c

Please sign in to comment.