Skip to content

Commit b2ef5b1

Browse files
Release v2.9
1 parent fa32a5d commit b2ef5b1

File tree

13 files changed

+33
-31
lines changed

13 files changed

+33
-31
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ assignees: 'massivemadness'
1010
*Please consider making a Pull Request if you are capable of doing so.*
1111

1212
**Library Version:**
13-
2.8
13+
2.9
1414

1515
**Affected Device(s):**
1616
Google Pixel 3 XL with Android 9.0

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Add this to your module’s `build.gradle` file:
5050
```gradle
5151
dependencies {
5252
...
53-
implementation 'com.fragula2:fragula-core:2.8'
53+
implementation 'com.fragula2:fragula-core:2.9'
5454
}
5555
```
5656

@@ -298,7 +298,7 @@ Add this to your module’s `build.gradle` file:
298298
```gradle
299299
dependencies {
300300
...
301-
implementation 'com.fragula2:fragula-compose:2.8'
301+
implementation 'com.fragula2:fragula-compose:2.9'
302302
}
303303
```
304304

app/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import com.fragula2.gradle.Gradle
17+
import com.fragula2.gradle.BuildConst
1818

1919
plugins {
2020
id("com.android.application")
@@ -25,14 +25,14 @@ plugins {
2525
}
2626

2727
android {
28-
compileSdk = Gradle.Build.compileSdk
28+
compileSdk = BuildConst.COMPILE_SDK
2929
namespace = "com.fragula2.sample"
3030

3131
defaultConfig {
3232
applicationId = "com.fragula2.sample"
3333

34-
minSdk = Gradle.Build.minSdk
35-
targetSdk = Gradle.Build.targetSdk
34+
minSdk = BuildConst.MIN_SDK
35+
targetSdk = BuildConst.TARGET_SDK
3636

3737
versionCode = 10000
3838
versionName = "1.0"

benchmark/build.gradle.kts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17-
import com.fragula2.gradle.Gradle
17+
import com.fragula2.gradle.BuildConst
1818

1919
plugins {
2020
id("com.android.test")
@@ -23,15 +23,15 @@ plugins {
2323
}
2424

2525
android {
26-
compileSdk = Gradle.Build.compileSdk
26+
compileSdk = BuildConst.COMPILE_SDK
2727
namespace = "com.fragula2.benchmark"
2828

2929
targetProjectPath = ":app"
3030
experimentalProperties["android.experimental.self-instrumenting"] = true
3131

3232
defaultConfig {
33-
minSdk = Gradle.Build.minSdk
34-
targetSdk = Gradle.Build.targetSdk
33+
minSdk = BuildConst.MIN_SDK
34+
targetSdk = BuildConst.TARGET_SDK
3535

3636
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3737
}

build-logic/convention/build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ gradlePlugin {
3939
plugins {
4040
register("fragula-module") {
4141
id = "fragula-module"
42-
implementationClass = "FragulaModulePlugin"
42+
implementationClass = "com.fragula2.gradle.FragulaModulePlugin"
4343
}
4444
register("publish-module") {
4545
id = "publish-module"
46-
implementationClass = "PublishModulePlugin"
46+
implementationClass = "com.fragula2.gradle.PublishModulePlugin"
4747
}
4848
register("stub-module") {
4949
id = "stub-module"
50-
implementationClass = "StubModulePlugin"
50+
implementationClass = "com.fragula2.gradle.StubModulePlugin"
5151
}
5252
}
5353
}

build-logic/convention/src/main/kotlin/com/fragula2/gradle/Gradle.kt renamed to build-logic/convention/src/main/kotlin/com/fragula2/gradle/BuildConst.kt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,12 @@
1616

1717
package com.fragula2.gradle
1818

19-
object Gradle {
19+
object BuildConst {
2020

21-
object Build {
22-
const val minSdk = 23
23-
const val targetSdk = 33
24-
const val compileSdk = 33
25-
}
21+
const val MIN_SDK = 23
22+
const val TARGET_SDK = 33
23+
const val COMPILE_SDK = 33
2624

27-
object Fragula {
28-
const val minSdk = 21
29-
const val targetSdk = 33
30-
const val compileSdk = 33
31-
}
25+
const val LIBRARY_MIN_SDK = 21
26+
const val LIBRARY_COMPILE_SDK = 33
3227
}

build-logic/convention/src/main/kotlin/FragulaModulePlugin.kt renamed to build-logic/convention/src/main/kotlin/com/fragula2/gradle/FragulaModulePlugin.kt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
* limitations under the License.
1515
*/
1616

17+
package com.fragula2.gradle
18+
1719
import com.android.build.api.dsl.LibraryExtension
18-
import com.fragula2.gradle.Gradle
1920
import org.gradle.api.JavaVersion
2021
import org.gradle.api.Plugin
2122
import org.gradle.api.Project
@@ -34,10 +35,10 @@ class FragulaModulePlugin : Plugin<Project> {
3435
}
3536

3637
configure<LibraryExtension> {
37-
compileSdk = Gradle.Fragula.compileSdk
38+
compileSdk = BuildConst.LIBRARY_COMPILE_SDK
3839

3940
defaultConfig {
40-
minSdk = Gradle.Fragula.minSdk
41+
minSdk = BuildConst.LIBRARY_MIN_SDK
4142

4243
consumerProguardFiles("consumer-rules.pro")
4344
}

build-logic/convention/src/main/kotlin/PublishModuleExtension.kt renamed to build-logic/convention/src/main/kotlin/com/fragula2/gradle/PublishModuleExtension.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
package com.fragula2.gradle
18+
1719
interface PublishModuleExtension {
1820
var libraryGroup: String
1921
var libraryArtifact: String

build-logic/convention/src/main/kotlin/PublishModulePlugin.kt renamed to build-logic/convention/src/main/kotlin/com/fragula2/gradle/PublishModulePlugin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
package com.fragula2.gradle
18+
1719
import org.gradle.api.Plugin
1820
import org.gradle.api.Project
1921
import org.gradle.api.publish.PublishingExtension

build-logic/convention/src/main/kotlin/StubModulePlugin.kt renamed to build-logic/convention/src/main/kotlin/com/fragula2/gradle/StubModulePlugin.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
* limitations under the License.
1515
*/
1616

17+
package com.fragula2.gradle
18+
1719
import org.gradle.api.Plugin
1820
import org.gradle.api.Project
1921

fragula-common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626
publishModule {
2727
libraryGroup = "com.fragula2"
2828
libraryArtifact = "fragula-common"
29-
libraryVersion = "2.8"
29+
libraryVersion = "2.9"
3030
}
3131

3232
dependencies {

fragula-compose/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ android {
3333
publishModule {
3434
libraryGroup = "com.fragula2"
3535
libraryArtifact = "fragula-compose"
36-
libraryVersion = "2.8"
36+
libraryVersion = "2.9"
3737
}
3838

3939
dependencies {

fragula-core/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ android {
2626
publishModule {
2727
libraryGroup = "com.fragula2"
2828
libraryArtifact = "fragula-core"
29-
libraryVersion = "2.8"
29+
libraryVersion = "2.9"
3030
}
3131

3232
dependencies {

0 commit comments

Comments
 (0)