Skip to content

Commit

Permalink
Merge pull request #54 from sproctor/remove_api
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
ffgiraldez authored Jan 17, 2023
2 parents 7bb5f07 + 5f075b9 commit 3ab6b14
Show file tree
Hide file tree
Showing 11 changed files with 181 additions and 146 deletions.
15 changes: 8 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

plugins {
id("org.jetbrains.compose") version "1.1.0"
id("org.jetbrains.compose") version "1.2.2"
id("com.android.application")
kotlin("android")
}
Expand All @@ -11,18 +11,19 @@ version = "1.0"

dependencies {
implementation(project(":color-picker"))
implementation ("androidx.activity:activity-compose:1.5.1")
implementation("com.google.android.material:material:1.6.1")
implementation("androidx.navigation:navigation-runtime-ktx:2.5.1")
implementation("androidx.navigation:navigation-compose:2.5.2")
implementation ("androidx.activity:activity-compose:1.6.1")
implementation("com.google.android.material:material:1.7.0")
implementation("androidx.navigation:navigation-runtime-ktx:2.5.3")
implementation("androidx.navigation:navigation-compose:2.5.3")
implementation(compose.material)
}

android {
compileSdk = 32
compileSdk = 33
defaultConfig {
applicationId = "com.godaddy.android.colorpicker"
minSdk = 21
targetSdk = 32
targetSdk = 33
versionCode = 1
versionName = "1.0"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.godaddy.android.colorpicker

import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
Expand All @@ -11,9 +10,9 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
Expand Down Expand Up @@ -45,7 +44,6 @@ fun ColorPreviewInfo(currentColor: Color) {
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
fun ColorPaletteBar(
modifier: Modifier = Modifier,
Expand All @@ -54,7 +52,7 @@ fun ColorPaletteBar(
LazyVerticalGrid(
horizontalArrangement = Arrangement.spacedBy(4.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
cells = GridCells.Adaptive(48.dp),
columns = GridCells.Adaptive(48.dp),
modifier = modifier
.fillMaxWidth(),
contentPadding = PaddingValues(16.dp),
Expand Down
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ buildscript {
mavenCentral()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10")
classpath("com.android.tools.build:gradle:7.2.2")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
classpath("com.android.tools.build:gradle:7.3.1")
}
}

Expand Down
19 changes: 7 additions & 12 deletions color-picker/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import org.jetbrains.compose.compose

plugins {
kotlin("multiplatform")
id("org.jetbrains.dokka") version "1.6.10"
id("org.jetbrains.compose") version "1.1.0"
id("org.jetbrains.dokka") version "1.7.20"
id("org.jetbrains.compose") version "1.2.2"
id("com.android.library")
id("maven-publish")
id("signing")
Expand All @@ -24,7 +24,7 @@ kotlin {
dependencies {
api(compose.runtime)
api(compose.foundation)
api(compose.material)
implementation(compose.material)
implementation("com.github.ajalt.colormath:colormath:3.2.0")
}
}
Expand All @@ -33,32 +33,27 @@ kotlin {
implementation(kotlin("test"))
}
}
val androidMain by getting {
dependencies {
api("androidx.appcompat:appcompat:1.5.1")
api("androidx.core:core-ktx:1.8.0")
}
}
val androidTest by getting {
dependencies {
implementation("junit:junit:4.13.2")
}
}
val jvmMain by getting {
dependencies {
api(compose.preview)
implementation(compose.preview)
}
}
val jvmTest by getting
}
}

android {
compileSdk = 31
namespace = "com.godaddy.common.colorpicker"
compileSdk = 33
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdk = 21
targetSdk = 31
targetSdk = 33
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
Expand Down
5 changes: 0 additions & 5 deletions color-picker/src/androidMain/AndroidManifest.xml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
package com.godaddy.android.colorpicker

/**
* Converst HsvColor to Android Color Int
* Convert HsvColor to Android Color Int
*
* returns @ColorInt
*/
Expand Down
2 changes: 1 addition & 1 deletion desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import org.jetbrains.compose.desktop.application.dsl.TargetFormat

plugins {
kotlin("multiplatform")
id("org.jetbrains.compose") version "1.1.0"
id("org.jetbrains.compose") version "1.2.2"
}

group = "com.godaddy"
Expand Down
10 changes: 4 additions & 6 deletions desktop/src/jvmMain/kotlin/HarmonyColorPickerScreen.kt
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import androidx.compose.foundation.Canvas
import androidx.compose.foundation.ExperimentalFoundationApi
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.PaddingValues
Expand All @@ -8,9 +7,9 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.wrapContentHeight
import androidx.compose.foundation.lazy.GridCells
import androidx.compose.foundation.lazy.LazyVerticalGrid
import androidx.compose.foundation.lazy.items
import androidx.compose.foundation.lazy.grid.GridCells
import androidx.compose.foundation.lazy.grid.LazyVerticalGrid
import androidx.compose.foundation.lazy.grid.items
import androidx.compose.material.DropdownMenu
import androidx.compose.material.DropdownMenuItem
import androidx.compose.material.Text
Expand Down Expand Up @@ -75,7 +74,6 @@ fun HarmonyColorPickerScreen() {
}
}

@OptIn(ExperimentalFoundationApi::class)
@Composable
fun ColorPaletteBar(
modifier: Modifier = Modifier,
Expand All @@ -84,7 +82,7 @@ fun ColorPaletteBar(
LazyVerticalGrid(
horizontalArrangement = Arrangement.spacedBy(4.dp),
verticalArrangement = Arrangement.spacedBy(4.dp),
cells = GridCells.Adaptive(48.dp),
columns = GridCells.Adaptive(48.dp),
modifier = modifier
.fillMaxWidth(),
contentPadding = PaddingValues(16.dp),
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
3 changes: 1 addition & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Sun Sep 25 18:37:16 BST 2022
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 3ab6b14

Please sign in to comment.