Skip to content

Commit b9f936c

Browse files
chore: add jitpack
1 parent c9e07d1 commit b9f936c

54 files changed

Lines changed: 241 additions & 148 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/build.gradle

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ plugins {
55

66
android {
77
namespace 'com.example.jetpackloading'
8-
compileSdk 33
8+
compileSdk 34
99

1010
defaultConfig {
1111
applicationId "com.example.jetpackloading"
1212
minSdk 24
13-
targetSdk 33
13+
targetSdk 34
1414
versionCode 1
1515
versionName "0.1.0"
1616

@@ -27,8 +27,8 @@ android {
2727
}
2828
}
2929
compileOptions {
30-
sourceCompatibility JavaVersion.VERSION_17
31-
targetCompatibility JavaVersion.VERSION_17
30+
sourceCompatibility JavaVersion.VERSION_1_8
31+
targetCompatibility JavaVersion.VERSION_1_8
3232
}
3333
kotlinOptions {
3434
jvmTarget = '1.8'
@@ -37,7 +37,7 @@ android {
3737
compose true
3838
}
3939
composeOptions {
40-
kotlinCompilerExtensionVersion '1.3.2'
40+
kotlinCompilerExtensionVersion '1.5.3'
4141
}
4242
packagingOptions {
4343
resources {
@@ -48,19 +48,16 @@ android {
4848

4949
dependencies {
5050

51-
implementation 'androidx.core:core-ktx:1.8.0'
51+
implementation 'androidx.core:core-ktx:1.12.0'
5252
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
5353
implementation 'androidx.activity:activity-compose:1.5.1'
5454
implementation platform('androidx.compose:compose-bom:2022.10.00')
5555
implementation 'androidx.compose.ui:ui'
5656
implementation 'androidx.compose.ui:ui-graphics'
5757
implementation 'androidx.compose.ui:ui-tooling-preview'
5858
implementation 'androidx.compose.material3:material3'
59-
testImplementation 'junit:junit:4.13.2'
60-
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
61-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
6259
androidTestImplementation platform('androidx.compose:compose-bom:2022.10.00')
63-
androidTestImplementation 'androidx.compose.ui:ui-test-junit4'
6460
debugImplementation 'androidx.compose.ui:ui-tooling'
6561
debugImplementation 'androidx.compose.ui:ui-test-manifest'
62+
implementation project(':jetpack-loading')
6663
}

app/src/main/java/com/example/jetpackloading/Constants.kt

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/src/main/java/com/example/jetpackloading/MainActivity.kt

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.example.jetpackloading
22

3-
import CircularPulsatingIndicator
43
import android.os.Bundle
54
import androidx.activity.ComponentActivity
65
import androidx.activity.compose.setContent
@@ -17,34 +16,36 @@ import androidx.compose.runtime.Composable
1716
import androidx.compose.ui.Alignment
1817
import androidx.compose.ui.Modifier
1918
import androidx.compose.ui.platform.LocalConfiguration
19+
import androidx.compose.ui.unit.Dp
2020
import androidx.compose.ui.unit.dp
21+
import com.example.jetpack_loading.components.BallBeatIndicator
2122
import com.example.jetpackloading.enums.PunchType
23+
import com.example.jetpackloading.theme.background
2224
import com.example.jetpackloading.ui.theme.JetpackLoadingTheme
23-
import com.example.jetpackloading.ui.theme.background
24-
import com.example.jetpackloading.ui.theme.component.BallBeatIndicator
25-
import com.example.jetpackloading.ui.theme.component.BallClipRotateMultipleIndicator
26-
import com.example.jetpackloading.ui.theme.component.BallClipRotatePulseIndicator
27-
import com.example.jetpackloading.ui.theme.component.BallGridBeatIndicator
28-
import com.example.jetpackloading.ui.theme.component.BallPulseRiseIndicator
29-
import com.example.jetpackloading.ui.theme.component.BallPulseSyncIndicator
30-
import com.example.jetpackloading.ui.theme.component.BallRotateIndicator
31-
import com.example.jetpackloading.ui.theme.component.BallScaleIndicator
32-
import com.example.jetpackloading.ui.theme.component.BallScaleMultipleIndicator
33-
import com.example.jetpackloading.ui.theme.component.BallScaleRippleIndicator
34-
import com.example.jetpackloading.ui.theme.component.BallScaleRippleMultipleIndicator
35-
import com.example.jetpackloading.ui.theme.component.BallSpinFadeLoaderIndicator
36-
import com.example.jetpackloading.ui.theme.component.BallTrianglePathIndicator
37-
import com.example.jetpackloading.ui.theme.component.BallZigZagDeflectIndicator
38-
import com.example.jetpackloading.ui.theme.component.BallZigZagIndicator
39-
import com.example.jetpackloading.ui.theme.component.CubeTransitionIndicator
40-
import com.example.jetpackloading.ui.theme.component.GridPulsatingDot
41-
import com.example.jetpackloading.ui.theme.component.LineSpinFadeLoaderIndicator
42-
import com.example.jetpackloading.ui.theme.component.PacmanIndicator
43-
import com.example.jetpackloading.ui.theme.component.PulsatingDot
44-
import com.example.jetpackloading.ui.theme.component.SemiCircleSpinIndicator
45-
import com.example.jetpackloading.ui.theme.component.SquareSpinIndicator
46-
import com.example.jetpackloading.ui.theme.component.TriangleSpinIndicator
4725
import com.example.jetpackloading.ui.theme.component.lineScaleIndicator.LineScaleIndicator
26+
import com.spr.jetpack_loading.components.BallClipRotateMultipleIndicator
27+
import com.spr.jetpack_loading.components.BallClipRotatePulseIndicator
28+
import com.spr.jetpack_loading.components.BallGridBeatIndicator
29+
import com.spr.jetpack_loading.components.BallPulseRiseIndicator
30+
import com.spr.jetpack_loading.components.BallPulseSyncIndicator
31+
import com.spr.jetpack_loading.components.BallRotateIndicator
32+
import com.spr.jetpack_loading.components.BallScaleIndicator
33+
import com.spr.jetpack_loading.components.BallScaleMultipleIndicator
34+
import com.spr.jetpack_loading.components.BallScaleRippleIndicator
35+
import com.spr.jetpack_loading.components.BallScaleRippleMultipleIndicator
36+
import com.spr.jetpack_loading.components.BallSpinFadeLoaderIndicator
37+
import com.spr.jetpack_loading.components.BallTrianglePathIndicator
38+
import com.spr.jetpack_loading.components.BallZigZagDeflectIndicator
39+
import com.spr.jetpack_loading.components.BallZigZagIndicator
40+
import com.spr.jetpack_loading.components.CircularPulsatingIndicator
41+
import com.spr.jetpack_loading.components.CubeTransitionIndicator
42+
import com.spr.jetpack_loading.components.GridPulsatingDot
43+
import com.spr.jetpack_loading.components.LineSpinFadeLoaderIndicator
44+
import com.spr.jetpack_loading.components.PacmanIndicator
45+
import com.spr.jetpack_loading.components.PulsatingDot
46+
import com.spr.jetpack_loading.components.SemiCircleSpinIndicator
47+
import com.spr.jetpack_loading.components.SquareSpinIndicator
48+
import com.spr.jetpack_loading.components.TriangleSpinIndicator
4849

4950
class MainActivity : ComponentActivity() {
5051
override fun onCreate(savedInstanceState: Bundle?) {
@@ -66,6 +67,8 @@ class MainActivity : ComponentActivity() {
6667
@Composable
6768
fun Greeting() {
6869

70+
val rowHeight: Dp = 50.dp
71+
6972
// get screen height and width
7073
val configuration = LocalConfiguration.current
7174
val screenWidthDp = configuration.screenWidthDp.dp

app/src/main/java/com/example/jetpackloading/ui/theme/Color.kt renamed to app/src/main/java/com/example/jetpackloading/theme/Color.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.example.jetpackloading.ui.theme
1+
package com.example.jetpackloading.theme
22

33
import androidx.compose.ui.graphics.Color
44

app/src/main/java/com/example/jetpackloading/ui/theme/Theme.kt renamed to app/src/main/java/com/example/jetpackloading/theme/Theme.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ import androidx.compose.ui.graphics.toArgb
1414
import androidx.compose.ui.platform.LocalContext
1515
import androidx.compose.ui.platform.LocalView
1616
import androidx.core.view.WindowCompat
17+
import com.example.jetpackloading.theme.Pink40
18+
import com.example.jetpackloading.theme.Pink80
19+
import com.example.jetpackloading.theme.Purple40
20+
import com.example.jetpackloading.theme.Purple80
21+
import com.example.jetpackloading.theme.PurpleGrey40
22+
import com.example.jetpackloading.theme.PurpleGrey80
1723

1824
private val DarkColorScheme = darkColorScheme(
1925
primary = Purple80,

app/src/main/java/com/example/jetpackloading/ui/theme/Type.kt renamed to app/src/main/java/com/example/jetpackloading/theme/Type.kt

File renamed without changes.

build.gradle

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
plugins {
3-
id 'com.android.application' version '8.0.2' apply false
4-
id 'com.android.library' version '8.0.2' apply false
5-
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
6-
id 'maven-publish'
7-
}
8-
9-
publishing {
10-
publications {
11-
mavenJava(MavenPublication) {
12-
artifactId = 'jetpack-loading'
13-
version= '0.1.0'
14-
}
15-
}
3+
id 'com.android.application' version '8.1.1' apply false
4+
id 'com.android.library' version '8.1.1' apply false
5+
id 'org.jetbrains.kotlin.android' version '1.9.10' apply false
166
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sat Sep 23 16:40:56 GMT+03:30 2023
1+
#Sun Sep 24 17:53:06 GMT+03:30 2023
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
4-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1-bin.zip
55
zipStoreBase=GRADLE_USER_HOME
66
zipStorePath=wrapper/dists

jetpack-loading/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

jetpack-loading/build.gradle.kts

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
plugins {
2+
id("com.android.library")
3+
id("org.jetbrains.kotlin.android")
4+
id ("maven-publish")
5+
}
6+
7+
android {
8+
namespace = "com.example.jetpack_loading"
9+
compileSdk = 33
10+
11+
defaultConfig {
12+
minSdk = 24
13+
14+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
15+
consumerProguardFiles("consumer-rules.pro")
16+
}
17+
18+
buildTypes {
19+
release {
20+
isMinifyEnabled = false
21+
proguardFiles(
22+
getDefaultProguardFile("proguard-android-optimize.txt"),
23+
"proguard-rules.pro"
24+
)
25+
}
26+
}
27+
compileOptions {
28+
sourceCompatibility = JavaVersion.VERSION_17
29+
targetCompatibility = JavaVersion.VERSION_17
30+
}
31+
kotlinOptions {
32+
jvmTarget = "17"
33+
}
34+
composeOptions {
35+
kotlinCompilerExtensionVersion = "1.5.3"
36+
}
37+
buildFeatures {
38+
compose= true
39+
}
40+
41+
publishing {
42+
singleVariant("release") {
43+
withSourcesJar()
44+
withJavadocJar()
45+
}
46+
}
47+
}
48+
49+
publishing {
50+
publications {
51+
register<MavenPublication>("release") {
52+
groupId = "com.github.MahboubehSeydpour"
53+
artifactId = "jetpack-loading"
54+
version = "0.1.0"
55+
56+
afterEvaluate {
57+
from(components["release"])
58+
}
59+
}
60+
}
61+
}
62+
63+
dependencies {
64+
65+
implementation ("androidx.core:core-ktx:1.12.0")
66+
implementation ("androidx.appcompat:appcompat:1.6.1")
67+
implementation (platform("androidx.compose:compose-bom:2022.10.00"))
68+
implementation ("androidx.compose.ui:ui")
69+
implementation ("androidx.compose.ui:ui-graphics")
70+
implementation ("androidx.compose.material3:material3")
71+
}

0 commit comments

Comments
 (0)