File tree Expand file tree Collapse file tree 13 files changed +33
-31
lines changed
src/main/kotlin/com/fragula2/gradle Expand file tree Collapse file tree 13 files changed +33
-31
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ assignees: 'massivemadness'
10
10
* Please consider making a Pull Request if you are capable of doing so.*
11
11
12
12
** Library Version:**
13
- 2.8
13
+ 2.9
14
14
15
15
** Affected Device(s):**
16
16
Google Pixel 3 XL with Android 9.0
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ Add this to your module’s `build.gradle` file:
50
50
``` gradle
51
51
dependencies {
52
52
...
53
- implementation 'com.fragula2:fragula-core:2.8 '
53
+ implementation 'com.fragula2:fragula-core:2.9 '
54
54
}
55
55
```
56
56
@@ -298,7 +298,7 @@ Add this to your module’s `build.gradle` file:
298
298
``` gradle
299
299
dependencies {
300
300
...
301
- implementation 'com.fragula2:fragula-compose:2.8 '
301
+ implementation 'com.fragula2:fragula-compose:2.9 '
302
302
}
303
303
```
304
304
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import com.fragula2.gradle.Gradle
17
+ import com.fragula2.gradle.BuildConst
18
18
19
19
plugins {
20
20
id(" com.android.application" )
@@ -25,14 +25,14 @@ plugins {
25
25
}
26
26
27
27
android {
28
- compileSdk = Gradle . Build .compileSdk
28
+ compileSdk = BuildConst . COMPILE_SDK
29
29
namespace = " com.fragula2.sample"
30
30
31
31
defaultConfig {
32
32
applicationId = " com.fragula2.sample"
33
33
34
- minSdk = Gradle . Build .minSdk
35
- targetSdk = Gradle . Build .targetSdk
34
+ minSdk = BuildConst . MIN_SDK
35
+ targetSdk = BuildConst . TARGET_SDK
36
36
37
37
versionCode = 10000
38
38
versionName = " 1.0"
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
- import com.fragula2.gradle.Gradle
17
+ import com.fragula2.gradle.BuildConst
18
18
19
19
plugins {
20
20
id(" com.android.test" )
@@ -23,15 +23,15 @@ plugins {
23
23
}
24
24
25
25
android {
26
- compileSdk = Gradle . Build .compileSdk
26
+ compileSdk = BuildConst . COMPILE_SDK
27
27
namespace = " com.fragula2.benchmark"
28
28
29
29
targetProjectPath = " :app"
30
30
experimentalProperties[" android.experimental.self-instrumenting" ] = true
31
31
32
32
defaultConfig {
33
- minSdk = Gradle . Build .minSdk
34
- targetSdk = Gradle . Build .targetSdk
33
+ minSdk = BuildConst . MIN_SDK
34
+ targetSdk = BuildConst . TARGET_SDK
35
35
36
36
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
37
37
}
Original file line number Diff line number Diff line change @@ -39,15 +39,15 @@ gradlePlugin {
39
39
plugins {
40
40
register(" fragula-module" ) {
41
41
id = " fragula-module"
42
- implementationClass = " FragulaModulePlugin"
42
+ implementationClass = " com.fragula2.gradle. FragulaModulePlugin"
43
43
}
44
44
register(" publish-module" ) {
45
45
id = " publish-module"
46
- implementationClass = " PublishModulePlugin"
46
+ implementationClass = " com.fragula2.gradle. PublishModulePlugin"
47
47
}
48
48
register(" stub-module" ) {
49
49
id = " stub-module"
50
- implementationClass = " StubModulePlugin"
50
+ implementationClass = " com.fragula2.gradle. StubModulePlugin"
51
51
}
52
52
}
53
53
}
Original file line number Diff line number Diff line change 16
16
17
17
package com.fragula2.gradle
18
18
19
- object Gradle {
19
+ object BuildConst {
20
20
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
26
24
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
32
27
}
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package com.fragula2.gradle
18
+
17
19
import com.android.build.api.dsl.LibraryExtension
18
- import com.fragula2.gradle.Gradle
19
20
import org.gradle.api.JavaVersion
20
21
import org.gradle.api.Plugin
21
22
import org.gradle.api.Project
@@ -34,10 +35,10 @@ class FragulaModulePlugin : Plugin<Project> {
34
35
}
35
36
36
37
configure<LibraryExtension > {
37
- compileSdk = Gradle . Fragula .compileSdk
38
+ compileSdk = BuildConst . LIBRARY_COMPILE_SDK
38
39
39
40
defaultConfig {
40
- minSdk = Gradle . Fragula .minSdk
41
+ minSdk = BuildConst . LIBRARY_MIN_SDK
41
42
42
43
consumerProguardFiles(" consumer-rules.pro" )
43
44
}
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package com.fragula2.gradle
18
+
17
19
interface PublishModuleExtension {
18
20
var libraryGroup: String
19
21
var libraryArtifact: String
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package com.fragula2.gradle
18
+
17
19
import org.gradle.api.Plugin
18
20
import org.gradle.api.Project
19
21
import org.gradle.api.publish.PublishingExtension
Original file line number Diff line number Diff line change 14
14
* limitations under the License.
15
15
*/
16
16
17
+ package com.fragula2.gradle
18
+
17
19
import org.gradle.api.Plugin
18
20
import org.gradle.api.Project
19
21
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ android {
26
26
publishModule {
27
27
libraryGroup = " com.fragula2"
28
28
libraryArtifact = " fragula-common"
29
- libraryVersion = " 2.8 "
29
+ libraryVersion = " 2.9 "
30
30
}
31
31
32
32
dependencies {
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ android {
33
33
publishModule {
34
34
libraryGroup = " com.fragula2"
35
35
libraryArtifact = " fragula-compose"
36
- libraryVersion = " 2.8 "
36
+ libraryVersion = " 2.9 "
37
37
}
38
38
39
39
dependencies {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ android {
26
26
publishModule {
27
27
libraryGroup = " com.fragula2"
28
28
libraryArtifact = " fragula-core"
29
- libraryVersion = " 2.8 "
29
+ libraryVersion = " 2.9 "
30
30
}
31
31
32
32
dependencies {
You can’t perform that action at this time.
0 commit comments