Skip to content

Commit f8e9274

Browse files
committed
Package renamed
1 parent 8f0f4e4 commit f8e9274

25 files changed

+92
-99
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ dependencies {
5555
```
5656
### Basic Usage
5757

58-
Add the view `com.limerse.slider.ImageCarousel` in your layout:
58+
Add the view `com.aemerse.slider.ImageCarousel` in your layout:
5959

6060
```xml
61-
<com.limerse.slider.ImageCarousel
61+
<com.aemerse.slider.ImageCarousel
6262
android:id="@+id/carousel"
6363
android:layout_width="match_parent"
6464
android:layout_height="256dp" />
@@ -128,7 +128,7 @@ That's all you need to use the library! :)
128128
All the custom XML attributes for `ImageCarousel` view with default values are given below. All attributes are optional.
129129

130130
```xml
131-
<com.limerse.slider.ImageCarousel
131+
<com.aemerse.slider.ImageCarousel
132132
android:id="@+id/carousel"
133133
android:layout_width="match_parent"
134134
android:layout_height="match_parent"

app/build.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
44
android {
55
compileSdk 31
66
defaultConfig {
7-
applicationId "com.limerse.sliding"
7+
applicationId "com.aemerse.sliding"
88
minSdk 21
99
targetSdk 31
1010
versionCode 1
@@ -23,16 +23,16 @@ android {
2323
}
2424

2525
dependencies {
26-
implementation 'androidx.appcompat:appcompat:1.3.1'
27-
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
26+
implementation 'androidx.appcompat:appcompat:1.4.0'
27+
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
2828
testImplementation 'junit:junit:4.13.2'
2929
implementation 'com.github.bumptech.glide:glide:4.12.0'
3030
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
3131
androidTestImplementation 'androidx.test:runner:1.4.0'
3232
implementation 'androidx.cardview:cardview:1.0.0'
3333
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
3434
implementation project(':slider')
35-
implementation 'androidx.core:core-ktx:1.6.0'
35+
implementation 'androidx.core:core-ktx:1.7.0'
3636

3737
// Material Components
3838
implementation 'com.google.android.material:material:1.4.0'
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
package com.limerse.sliding;
1+
package com.aemerse.sliding
22

3-
import android.content.Context;
4-
import androidx.test.InstrumentationRegistry;
5-
import androidx.test.runner.AndroidJUnit4;
6-
7-
import org.junit.Test;
8-
import org.junit.runner.RunWith;
9-
10-
import static org.junit.Assert.*;
3+
import androidx.test.InstrumentationRegistry
4+
import androidx.test.runner.AndroidJUnit4
5+
import org.junit.Assert
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
118

129
/**
1310
* Instrumented test, which will execute on an Android device.
1411
*
15-
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
12+
* @see [Testing documentation](http://d.android.com/tools/testing)
1613
*/
17-
@RunWith(AndroidJUnit4.class)
18-
public class ExampleInstrumentedTest {
14+
@RunWith(AndroidJUnit4::class)
15+
class ExampleInstrumentedTest {
1916
@Test
20-
public void useAppContext() {
17+
fun useAppContext() {
2118
// Context of the app under test.
22-
Context appContext = InstrumentationRegistry.getTargetContext();
23-
24-
assertEquals("com.smarteist.imageslider", appContext.getPackageName());
19+
val appContext = InstrumentationRegistry.getTargetContext()
20+
Assert.assertEquals("com.aemerse.sliding", appContext.packageName)
2521
}
26-
}
22+
}

app/src/main/AndroidManifest.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.limerse.sliding">
3+
package="com.aemerse.sliding">
44

55
<uses-permission android:name="android.permission.INTERNET" />
66

@@ -11,15 +11,15 @@
1111
android:roundIcon="@mipmap/ic_launcher_round"
1212
android:supportsRtl="true"
1313
android:theme="@style/AppTheme">
14-
<activity android:name="com.limerse.sliding.KotlinActivity"
14+
<activity android:name="com.aemerse.sliding.KotlinActivity"
1515
android:exported="true">
1616
<intent-filter>
1717
<action android:name="android.intent.action.MAIN" />
1818

1919
<category android:name="android.intent.category.LAUNCHER" />
2020
</intent-filter>
2121
</activity>
22-
<activity android:name=".SelectedImage"/>
22+
<activity android:name="com.aemerse.sliding.SelectedImage"/>
2323
</application>
2424

2525
</manifest>

app/src/main/java/com/limerse/sliding/DataSet.kt app/src/main/java/com/aemerse/sliding/DataSet.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.limerse.sliding
1+
package com.aemerse.sliding
22

33
object DataSet {
44
val one = listOf(

app/src/main/java/com/limerse/sliding/KotlinActivity.kt app/src/main/java/com/aemerse/sliding/KotlinActivity.kt

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.limerse.sliding
1+
package com.aemerse.sliding
22

33
import android.app.ActivityOptions
44
import android.content.Context
@@ -11,19 +11,18 @@ import android.view.ViewGroup
1111
import android.widget.ImageView
1212
import android.widget.Toast
1313
import androidx.appcompat.app.AppCompatActivity
14-
import androidx.core.content.ContextCompat
1514
import androidx.core.content.res.ResourcesCompat
1615
import androidx.recyclerview.widget.RecyclerView
1716
import androidx.viewbinding.ViewBinding
18-
import com.limerse.slider.listener.CarouselListener
19-
import com.limerse.slider.listener.CarouselOnScrollListener
20-
import com.limerse.slider.model.CarouselGravity
21-
import com.limerse.slider.model.CarouselItem
22-
import com.limerse.slider.model.CarouselType
23-
import com.limerse.slider.utils.dpToPx
24-
import com.limerse.slider.utils.setImage
25-
import com.limerse.slider.utils.spToPx
26-
import com.limerse.sliding.databinding.*
17+
import com.aemerse.slider.listener.CarouselListener
18+
import com.aemerse.slider.listener.CarouselOnScrollListener
19+
import com.aemerse.slider.model.CarouselGravity
20+
import com.aemerse.slider.model.CarouselItem
21+
import com.aemerse.slider.model.CarouselType
22+
import com.aemerse.slider.utils.dpToPx
23+
import com.aemerse.slider.utils.setImage
24+
import com.aemerse.slider.utils.spToPx
25+
import com.aemerse.sliding.databinding.*
2726
import kotlin.random.Random
2827

2928
class KotlinActivity : AppCompatActivity() {

app/src/main/java/com/limerse/sliding/SelectedImage.kt app/src/main/java/com/aemerse/sliding/SelectedImage.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.limerse.sliding
1+
package com.aemerse.sliding
22

33
import android.os.Bundle
44
import androidx.appcompat.app.AppCompatActivity
55
import com.bumptech.glide.Glide
6-
import com.limerse.sliding.databinding.SelectedImageActivityBinding
6+
import com.aemerse.sliding.databinding.SelectedImageActivityBinding
77

88
class SelectedImage : AppCompatActivity() {
99
private lateinit var binding: SelectedImageActivityBinding

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
android:textSize="24sp"
2525
android:textStyle="bold" />
2626

27-
<com.limerse.slider.ImageCarousel
27+
<com.aemerse.slider.ImageCarousel
2828
android:id="@+id/carousel1"
2929
android:layout_width="match_parent"
3030
android:layout_height="200dp"
@@ -56,7 +56,7 @@
5656
android:layout_marginBottom="8dp"
5757
android:orientation="horizontal">
5858

59-
<com.limerse.slider.ImageCarousel
59+
<com.aemerse.slider.ImageCarousel
6060
android:id="@+id/carousel2"
6161
android:layout_width="0dp"
6262
android:layout_height="150dp"
@@ -125,7 +125,7 @@
125125

126126
</com.google.android.material.card.MaterialCardView>
127127

128-
<com.limerse.slider.ImageCarousel
128+
<com.aemerse.slider.ImageCarousel
129129
android:id="@+id/carousel3"
130130
android:layout_width="match_parent"
131131
android:layout_height="150dp"
@@ -232,7 +232,7 @@
232232

233233
</com.google.android.material.card.MaterialCardView>
234234

235-
<com.limerse.slider.ImageCarousel
235+
<com.aemerse.slider.ImageCarousel
236236
android:id="@+id/carousel4"
237237
android:layout_width="match_parent"
238238
android:layout_height="150dp"
@@ -256,7 +256,7 @@
256256
</FrameLayout>
257257

258258
<!-- ================================================================ -->
259-
<com.limerse.slider.ImageCarousel
259+
<com.aemerse.slider.ImageCarousel
260260
android:id="@+id/carousel5"
261261
android:layout_width="match_parent"
262262
android:layout_height="180dp"
@@ -279,7 +279,7 @@
279279

280280
<!-- ================================================================ -->
281281

282-
<com.limerse.slider.ImageCarousel
282+
<com.aemerse.slider.ImageCarousel
283283
android:id="@+id/carousel6"
284284
android:layout_width="match_parent"
285285
android:layout_height="160dp"
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
package com.limerse.sliding;
1+
package com.aemerse.sliding
22

3-
import org.junit.Test;
4-
5-
import static org.junit.Assert.*;
3+
import org.junit.Assert
4+
import org.junit.Test
65

76
/**
87
* Example local unit test, which will execute on the development machine (host).
98
*
10-
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
9+
* @see [Testing documentation](http://d.android.com/tools/testing)
1110
*/
12-
public class ExampleUnitTest {
11+
class ExampleUnitTest {
1312
@Test
14-
public void addition_isCorrect() {
15-
assertEquals(4, 2 + 2);
13+
fun addition_isCorrect() {
14+
Assert.assertEquals(4, (2 + 2).toLong())
1615
}
1716
}

build.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = '1.5.31'
3+
ext.kotlin_version = '1.6.0'
44

55
repositories {
66
google()
77
mavenCentral()
88
}
99
dependencies {
10-
classpath 'com.android.tools.build:gradle:7.0.3'
10+
classpath 'com.android.tools.build:gradle:7.0.4'
1111
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1212

1313
// NOTE: Do not place your application dependencies here; they belong

slider/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ android {
2424
}
2525

2626
dependencies {
27-
implementation 'androidx.appcompat:appcompat:1.3.1'
28-
implementation 'androidx.core:core-ktx:1.6.0'
27+
implementation 'androidx.appcompat:appcompat:1.4.0'
28+
implementation 'androidx.core:core-ktx:1.7.0'
2929

3030
implementation 'com.google.android.material:material:1.4.0'
31-
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
31+
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
3232
implementation 'androidx.recyclerview:recyclerview:1.2.1'
3333

3434
// Glide
@@ -47,9 +47,9 @@ afterEvaluate {
4747
from components.release
4848

4949
// You can then customize attributes of the publication as shown below.
50-
groupId = 'com.limerse.slider'
51-
artifactId = 'final'
52-
version = '1.0'
50+
groupId = 'com.aemerse'
51+
artifactId = 'Slider'
52+
version = '1.0.4'
5353
}
5454
}
5555
}

slider/src/main/AndroidManifest.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2-
package="com.limerse.slider">
2+
package="com.aemerse.slider">
33

44
<uses-permission android:name="android.permission.INTERNET" />
55

slider/src/main/java/com/limerse/slider/ImageCarousel.kt slider/src/main/java/com/aemerse/slider/ImageCarousel.kt

+9-10
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.limerse.slider
1+
package com.aemerse.slider
22

33
import android.content.Context
44
import android.graphics.Color
@@ -19,20 +19,19 @@ import androidx.annotation.Dimension
1919
import androidx.annotation.IdRes
2020
import androidx.annotation.LayoutRes
2121
import androidx.constraintlayout.widget.ConstraintLayout
22-
import androidx.core.content.ContextCompat
2322
import androidx.lifecycle.Lifecycle
2423
import androidx.lifecycle.LifecycleObserver
2524
import androidx.lifecycle.OnLifecycleEvent
2625
import androidx.recyclerview.widget.*
2726
import me.relex.circleindicator.CircleIndicator2
28-
import com.limerse.slider.adapter.FiniteCarouselAdapter
29-
import com.limerse.slider.adapter.InfiniteCarouselAdapter
30-
import com.limerse.slider.listener.CarouselListener
31-
import com.limerse.slider.listener.CarouselOnScrollListener
32-
import com.limerse.slider.model.CarouselGravity
33-
import com.limerse.slider.model.CarouselItem
34-
import com.limerse.slider.model.CarouselType
35-
import com.limerse.slider.utils.*
27+
import com.aemerse.slider.adapter.FiniteCarouselAdapter
28+
import com.aemerse.slider.adapter.InfiniteCarouselAdapter
29+
import com.aemerse.slider.listener.CarouselListener
30+
import com.aemerse.slider.listener.CarouselOnScrollListener
31+
import com.aemerse.slider.model.CarouselGravity
32+
import com.aemerse.slider.model.CarouselItem
33+
import com.aemerse.slider.model.CarouselType
34+
import com.aemerse.slider.utils.*
3635
import org.jetbrains.annotations.NotNull
3736
import org.jetbrains.annotations.Nullable
3837

slider/src/main/java/com/limerse/slider/adapter/FiniteCarouselAdapter.kt slider/src/main/java/com/aemerse/slider/adapter/FiniteCarouselAdapter.kt

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
package com.limerse.slider.adapter
1+
package com.aemerse.slider.adapter
22

33
import android.view.LayoutInflater
44
import android.view.ViewGroup
55
import android.view.ViewTreeObserver
66
import android.widget.ImageView
77
import androidx.recyclerview.widget.RecyclerView
88
import androidx.viewbinding.ViewBinding
9-
import com.limerse.slider.databinding.ItemCarouselBinding
10-
import com.limerse.slider.listener.CarouselListener
11-
import com.limerse.slider.model.CarouselGravity
12-
import com.limerse.slider.model.CarouselItem
13-
import com.limerse.slider.model.CarouselType
14-
import com.limerse.slider.utils.CarouselItemDecoration
15-
import com.limerse.slider.utils.setImage
9+
import com.aemerse.slider.databinding.ItemCarouselBinding
10+
import com.aemerse.slider.listener.CarouselListener
11+
import com.aemerse.slider.model.CarouselGravity
12+
import com.aemerse.slider.model.CarouselItem
13+
import com.aemerse.slider.model.CarouselType
14+
import com.aemerse.slider.utils.CarouselItemDecoration
15+
import com.aemerse.slider.utils.setImage
1616

1717
open class FiniteCarouselAdapter(
1818
private val recyclerView: RecyclerView,

slider/src/main/java/com/limerse/slider/adapter/InfiniteCarouselAdapter.kt slider/src/main/java/com/aemerse/slider/adapter/InfiniteCarouselAdapter.kt

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
package com.limerse.slider.adapter
1+
package com.aemerse.slider.adapter
22

33
import android.widget.ImageView
44
import androidx.recyclerview.widget.RecyclerView
5-
import com.limerse.slider.model.CarouselGravity
6-
import com.limerse.slider.model.CarouselItem
7-
import com.limerse.slider.model.CarouselType
5+
import com.aemerse.slider.model.CarouselGravity
6+
import com.aemerse.slider.model.CarouselItem
7+
import com.aemerse.slider.model.CarouselType
88

99
class InfiniteCarouselAdapter(
1010
recyclerView: RecyclerView,

slider/src/main/java/com/limerse/slider/listener/CarouselListener.kt slider/src/main/java/com/aemerse/slider/listener/CarouselListener.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
package com.limerse.slider.listener
1+
package com.aemerse.slider.listener
22

33
import android.view.LayoutInflater
44
import android.view.ViewGroup
55
import androidx.viewbinding.ViewBinding
6-
import com.limerse.slider.model.CarouselItem
6+
import com.aemerse.slider.model.CarouselItem
77

88
interface CarouselListener {
99
/**

0 commit comments

Comments
 (0)