Skip to content

Commit 385fc7b

Browse files
authored
Develop (#3)
- Updated target SDK version
1 parent d583e80 commit 385fc7b

File tree

14 files changed

+409
-56
lines changed

14 files changed

+409
-56
lines changed

.gitignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ local.properties
2222
/app/build
2323
/app/.idea
2424
gradlew.bat
25-
gradlew
26-
/app/gradle
25+
/app/gradlez
2726
/app/local.properties
2827
misc.xml
2928
/buildSrc/build

ShimmerTextView/build.gradle

Lines changed: 27 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,51 @@
11
plugins {
2-
id 'com.android.library'
3-
id 'org.jetbrains.kotlin.android'
2+
id("com.android.library")
3+
id("org.jetbrains.kotlin.android")
4+
id("maven-publish")
45
}
56

67
android {
7-
compileSdk 34
8+
namespace = "com.app.shimmertextview"
9+
compileSdk = 34
810

911
defaultConfig {
10-
minSdk 22
11-
targetSdk 34
12-
versionCode 1
13-
versionName "1.0.0"
12+
minSdk = 22
13+
targetSdk = 34
1414

15-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1616
consumerProguardFiles "consumer-rules.pro"
1717
}
1818

1919
buildTypes {
2020
release {
21-
minifyEnabled false
22-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21+
minifyEnabled = false
22+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
2323
}
2424
}
2525
compileOptions {
26-
sourceCompatibility JavaVersion.VERSION_17
27-
targetCompatibility JavaVersion.VERSION_17
26+
sourceCompatibility = JavaVersion.VERSION_17
27+
targetCompatibility = JavaVersion.VERSION_17
2828
}
2929
kotlinOptions {
3030
jvmTarget = '17'
3131
}
32-
namespace 'com.app.shimmertextview'
3332
}
3433

3534
dependencies {
35+
implementation("androidx.core:core-ktx:1.12.0")
36+
implementation("androidx.appcompat:appcompat:1.6.1")
37+
implementation("com.google.android.material:material:1.11.0")
38+
}
3639

37-
implementation 'androidx.core:core-ktx:1.12.0'
38-
implementation 'androidx.appcompat:appcompat:1.6.1'
39-
implementation 'com.google.android.material:material:1.11.0'
40+
afterEvaluate {
41+
publishing {
42+
publications {
43+
release(MavenPublication) {
44+
from components.release
45+
groupId = 'com.github.Mindinventory' //your git id
46+
artifactId = 'ShimmerTextView' //your-repository
47+
version = '1.0.0' // As same as the Tag
48+
}
49+
}
50+
}
4051
}

app/build.gradle

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
plugins {
2-
id 'com.android.application'
3-
id 'org.jetbrains.kotlin.android'
2+
id("com.android.application")
3+
id("org.jetbrains.kotlin.android")
44
}
55

66
android {
7-
compileSdk 34
7+
namespace = "com.sample.shimmertextview"
8+
9+
compileSdk = 34
810

911
defaultConfig {
10-
applicationId "com.app.shimmertextview"
11-
minSdk 23
12-
targetSdk 34
13-
versionCode 1
14-
versionName "1.0"
12+
applicationId = "com.sample.shimmertextview"
13+
minSdk = 23
14+
targetSdk = 34
15+
versionCode = 1
16+
versionName = "1.0"
1517

16-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
18+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
1719
}
1820

1921
buildTypes {
2022
release {
21-
minifyEnabled false
22-
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
23+
minifyEnabled = false
24+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
2325
}
2426
}
2527
compileOptions {
26-
sourceCompatibility JavaVersion.VERSION_17
27-
targetCompatibility JavaVersion.VERSION_17
28+
sourceCompatibility = JavaVersion.VERSION_17
29+
targetCompatibility = JavaVersion.VERSION_17
2830
}
2931
kotlinOptions {
3032
jvmTarget = '17'
3133
}
32-
namespace 'com.app.shimmertextview'
3334
}
3435

3536
dependencies {
3637

37-
implementation 'androidx.core:core-ktx:1.12.0'
38-
implementation 'androidx.appcompat:appcompat:1.6.1'
39-
implementation 'com.google.android.material:material:1.11.0'
40-
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
41-
implementation project(path: ':ShimmerTextView')
38+
implementation("androidx.core:core-ktx:1.12.0")
39+
implementation("androidx.appcompat:appcompat:1.6.1")
40+
implementation("com.google.android.material:material:1.11.0")
41+
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
42+
implementation(project(":ShimmerTextView"))
4243
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,16 @@
1313
android:theme="@style/Theme.ShimmerTextView"
1414
tools:targetApi="31">
1515
<activity
16-
android:name=".MainActivity"
16+
android:name="com.sample.shimmertextview.MainActivity"
1717
android:exported="true">
1818
<intent-filter>
1919
<action android:name="android.intent.action.MAIN" />
20-
2120
<category android:name="android.intent.category.LAUNCHER" />
2221
</intent-filter>
2322
</activity>
2423

2524
<activity
26-
android:name=".OfferActivity"
25+
android:name="com.sample.shimmertextview.OfferActivity"
2726
android:exported="true" />
2827
</application>
2928

app/src/main/java/com/app/shimmertextview/MainActivity.kt renamed to app/src/main/java/com/sample/shimmertextview/MainActivity.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.app.shimmertextview
1+
package com.sample.shimmertextview
22

33
import android.app.Activity
44
import android.content.Intent
@@ -9,6 +9,8 @@ import android.view.WindowManager
99
import androidx.appcompat.app.AppCompatActivity
1010
import androidx.appcompat.widget.AppCompatButton
1111
import androidx.core.content.ContextCompat
12+
import com.app.shimmertextview.Shimmer
13+
import com.app.shimmertextview.ShimmerTextView
1214

1315

1416
class MainActivity : AppCompatActivity() {

app/src/main/java/com/app/shimmertextview/OfferActivity.kt renamed to app/src/main/java/com/sample/shimmertextview/OfferActivity.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
package com.app.shimmertextview
1+
package com.sample.shimmertextview
22

33
import android.app.Activity
44
import android.graphics.Color
55
import android.os.Bundle
66
import android.view.View
77
import android.view.WindowManager
88
import androidx.appcompat.app.AppCompatActivity
9+
import com.app.shimmertextview.ShimmerTextView
910

1011
class OfferActivity : AppCompatActivity() {
1112

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
tools:context=".MainActivity"
7+
tools:context="com.sample.shimmertextview.MainActivity"
88
android:background="@color/light_gray">
99

1010
<androidx.cardview.widget.CardView

build.gradle

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +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.3.0' apply false
4-
id 'com.android.library' version '8.3.0' apply false
5-
id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
6-
}
7-
8-
tasks.register('clean', Delete) {
9-
delete rootProject.layout.buildDirectory
3+
id("com.android.application") version '8.3.1' apply false
4+
id("com.android.library") version '8.3.1' apply false
5+
id("org.jetbrains.kotlin.android") version "1.9.23" apply false
106
}

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ kotlin.code.style=official
2222
# thereby reducing the size of the R class for that library
2323
android.nonTransitiveRClass=true
2424
android.defaults.buildfeatures.buildconfig=true
25-
android.nonFinalResIds=false
25+
android.nonFinalResIds=false
26+
android.enableJetifier=true

gradle/wrapper/gradle-wrapper.jar

4.41 KB
Binary file not shown.

0 commit comments

Comments
 (0)