Skip to content

Commit

Permalink
Merge pull request #51 from futuredapp/feature/fix-compose-build-and-…
Browse files Browse the repository at this point in the history
…rename-package

Fix compose build and rename package
  • Loading branch information
SumeraMartin authored May 20, 2020
2 parents 4bf0302 + 07dfe90 commit 32c7021
Show file tree
Hide file tree
Showing 17 changed files with 40 additions and 33 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
object Versions {
// gradle
const val gradle = "4.1.0-alpha07"
const val gradle = "4.1.0-alpha09"

// kotlin
const val kotlin = "1.3.72"
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Wed May 20 09:02:42 CEST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-all.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4-rc-2-bin.zip
6 changes: 6 additions & 0 deletions library-compose/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ android {
composeOptions {
kotlinCompilerExtensionVersion = Versions.jetpackCompose
}

packagingOptions {
val newExcludes = getExcludes()
newExcludes.remove("/META-INF/*.kotlin_module")
excludes = newExcludes
}
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion library-compose/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<manifest
package="app.futured.donut.library.compose">
package="app.futured.donut.compose">
</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose
package app.futured.donut.compose

import androidx.compose.Composable
import androidx.compose.remember
Expand All @@ -16,13 +16,13 @@ import androidx.ui.layout.fillMaxSize
import androidx.ui.unit.PxSize
import androidx.ui.unit.center
import androidx.ui.unit.min
import app.futured.donut.library.compose.data.DonutConfig
import app.futured.donut.library.compose.data.DonutModel
import app.futured.donut.library.compose.internal.data.DonutPathData
import app.futured.donut.library.compose.internal.data.DonutPathDataEntry
import app.futured.donut.library.compose.internal.data.DonutProgressValues
import app.futured.donut.library.compose.internal.data.SectionsPathData
import app.futured.donut.library.compose.internal.extensions.animateOrSnapDistinctValues
import app.futured.donut.compose.data.DonutConfig
import app.futured.donut.compose.data.DonutModel
import app.futured.donut.compose.internal.data.DonutPathData
import app.futured.donut.compose.internal.data.DonutPathDataEntry
import app.futured.donut.compose.internal.data.DonutProgressValues
import app.futured.donut.compose.internal.data.SectionsPathData
import app.futured.donut.compose.internal.extensions.animateOrSnapDistinctValues
import kotlin.math.max

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package app.futured.donut.library.compose.data
package app.futured.donut.compose.data

import androidx.animation.AnimationBuilder
import androidx.animation.TweenBuilder
import androidx.compose.Model
import androidx.ui.graphics.Color
import app.futured.donut.library.compose.DonutProgress
import app.futured.donut.compose.DonutProgress

/**
* Configuration class for [DonutProgress]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app.futured.donut.library.compose.data
package app.futured.donut.compose.data

import androidx.compose.Model
import androidx.ui.graphics.Color
import app.futured.donut.library.compose.DonutProgress
import app.futured.donut.library.compose.internal.extensions.sumByFloat
import app.futured.donut.compose.DonutProgress
import app.futured.donut.compose.internal.extensions.sumByFloat

/**
* Wrapper for all necessary data values used by [DonutProgress] to draw its content.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.data
package app.futured.donut.compose.data

import androidx.compose.Model
import androidx.ui.graphics.Color
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.internal
package app.futured.donut.compose.internal

import androidx.animation.AnimatedValue
import androidx.animation.AnimationVector4D
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.internal.data
package app.futured.donut.compose.internal.data

internal data class DonutPathData(
val masterPathData: DonutPathDataEntry,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.internal.data
package app.futured.donut.compose.internal.data

import androidx.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package app.futured.donut.library.compose.internal.data
package app.futured.donut.compose.internal.data

import androidx.animation.AnimatedFloat
import app.futured.donut.library.compose.internal.AnimatedColor
import app.futured.donut.compose.internal.AnimatedColor

internal data class DonutProgressValues(
var animatedGapAngle: AnimatedFloat,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app.futured.donut.library.compose.internal.data
package app.futured.donut.compose.internal.data

import app.futured.donut.library.compose.data.DonutSection
import app.futured.donut.compose.data.DonutSection

internal data class SectionsPathData(
val startAngle: Float,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.internal.extensions
package app.futured.donut.compose.internal.extensions

import androidx.animation.AnimationBuilder
import androidx.animation.BaseAnimatedValue
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package app.futured.donut.library.compose.internal.extensions
package app.futured.donut.compose.internal.extensions

internal inline fun <T> Iterable<T>.sumByFloat(selector: (T) -> Float): Float {
var sum = 0f
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ import androidx.ui.layout.height
import androidx.ui.layout.size
import androidx.ui.tooling.preview.Preview
import androidx.ui.unit.dp
import app.futured.donut.library.compose.DonutProgress
import app.futured.donut.library.compose.data.DonutConfig
import app.futured.donut.library.compose.data.DonutModel
import app.futured.donut.library.compose.data.DonutSection
import app.futured.donut.compose.DonutProgress
import app.futured.donut.compose.data.DonutConfig
import app.futured.donut.compose.data.DonutModel
import app.futured.donut.compose.data.DonutSection
import app.futured.donutsample.ui.playground.common.compose.Circle

@Composable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import androidx.appcompat.app.AppCompatActivity
import androidx.appcompat.widget.SwitchCompat
import androidx.ui.core.setContent
import androidx.ui.graphics.Color
import app.futured.donut.library.compose.data.DonutConfig
import app.futured.donut.library.compose.data.DonutModel
import app.futured.donut.library.compose.data.DonutSection
import app.futured.donut.compose.data.DonutConfig
import app.futured.donut.compose.data.DonutModel
import app.futured.donut.compose.data.DonutSection
import app.futured.donutsample.R
import app.futured.donutsample.tools.view.setupSeekbar
import kotlin.math.max
Expand Down

0 comments on commit 32c7021

Please sign in to comment.