Skip to content

Commit

Permalink
Package renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaaatt committed Dec 9, 2021
1 parent 8f0f4e4 commit f8e9274
Show file tree
Hide file tree
Showing 25 changed files with 92 additions and 99 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ dependencies {
```
### Basic Usage

Add the view `com.limerse.slider.ImageCarousel` in your layout:
Add the view `com.aemerse.slider.ImageCarousel` in your layout:

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

```xml
<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel"
android:layout_width="match_parent"
android:layout_height="match_parent"
Expand Down
8 changes: 4 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'kotlin-android'
android {
compileSdk 31
defaultConfig {
applicationId "com.limerse.sliding"
applicationId "com.aemerse.sliding"
minSdk 21
targetSdk 31
versionCode 1
Expand All @@ -23,16 +23,16 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
testImplementation 'junit:junit:4.13.2'
implementation 'com.github.bumptech.glide:glide:4.12.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.12.0'
androidTestImplementation 'androidx.test:runner:1.4.0'
implementation 'androidx.cardview:cardview:1.0.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
implementation project(':slider')
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.core:core-ktx:1.7.0'

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

import android.content.Context;
import androidx.test.InstrumentationRegistry;
import androidx.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;
import androidx.test.InstrumentationRegistry
import androidx.test.runner.AndroidJUnit4
import org.junit.Assert
import org.junit.Test
import org.junit.runner.RunWith

/**
* Instrumented test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
* @see [Testing documentation](http://d.android.com/tools/testing)
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
public void useAppContext() {
fun useAppContext() {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.smarteist.imageslider", appContext.getPackageName());
val appContext = InstrumentationRegistry.getTargetContext()
Assert.assertEquals("com.aemerse.sliding", appContext.packageName)
}
}
}
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.limerse.sliding">
package="com.aemerse.sliding">

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

Expand All @@ -11,15 +11,15 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.limerse.sliding.KotlinActivity"
<activity android:name="com.aemerse.sliding.KotlinActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SelectedImage"/>
<activity android:name="com.aemerse.sliding.SelectedImage"/>
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.limerse.sliding
package com.aemerse.sliding

object DataSet {
val one = listOf(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.limerse.sliding
package com.aemerse.sliding

import android.app.ActivityOptions
import android.content.Context
Expand All @@ -11,19 +11,18 @@ import android.view.ViewGroup
import android.widget.ImageView
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.content.ContextCompat
import androidx.core.content.res.ResourcesCompat
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.limerse.slider.listener.CarouselListener
import com.limerse.slider.listener.CarouselOnScrollListener
import com.limerse.slider.model.CarouselGravity
import com.limerse.slider.model.CarouselItem
import com.limerse.slider.model.CarouselType
import com.limerse.slider.utils.dpToPx
import com.limerse.slider.utils.setImage
import com.limerse.slider.utils.spToPx
import com.limerse.sliding.databinding.*
import com.aemerse.slider.listener.CarouselListener
import com.aemerse.slider.listener.CarouselOnScrollListener
import com.aemerse.slider.model.CarouselGravity
import com.aemerse.slider.model.CarouselItem
import com.aemerse.slider.model.CarouselType
import com.aemerse.slider.utils.dpToPx
import com.aemerse.slider.utils.setImage
import com.aemerse.slider.utils.spToPx
import com.aemerse.sliding.databinding.*
import kotlin.random.Random

class KotlinActivity : AppCompatActivity() {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.limerse.sliding
package com.aemerse.sliding

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.bumptech.glide.Glide
import com.limerse.sliding.databinding.SelectedImageActivityBinding
import com.aemerse.sliding.databinding.SelectedImageActivityBinding

class SelectedImage : AppCompatActivity() {
private lateinit var binding: SelectedImageActivityBinding
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/layout/activity_kotlin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
android:textSize="24sp"
android:textStyle="bold" />

<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel1"
android:layout_width="match_parent"
android:layout_height="200dp"
Expand Down Expand Up @@ -56,7 +56,7 @@
android:layout_marginBottom="8dp"
android:orientation="horizontal">

<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel2"
android:layout_width="0dp"
android:layout_height="150dp"
Expand Down Expand Up @@ -125,7 +125,7 @@

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

<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel3"
android:layout_width="match_parent"
android:layout_height="150dp"
Expand Down Expand Up @@ -232,7 +232,7 @@

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

<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel4"
android:layout_width="match_parent"
android:layout_height="150dp"
Expand All @@ -256,7 +256,7 @@
</FrameLayout>

<!-- ================================================================ -->
<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel5"
android:layout_width="match_parent"
android:layout_height="180dp"
Expand All @@ -279,7 +279,7 @@

<!-- ================================================================ -->

<com.limerse.slider.ImageCarousel
<com.aemerse.slider.ImageCarousel
android:id="@+id/carousel6"
android:layout_width="match_parent"
android:layout_height="160dp"
Expand Down
15 changes: 7 additions & 8 deletions app/src/test/java/com/aemerse/sliding/ExampleUnitTest.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package com.limerse.sliding;
package com.aemerse.sliding

import org.junit.Test;

import static org.junit.Assert.*;
import org.junit.Assert
import org.junit.Test

/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
* @see [Testing documentation](http://d.android.com/tools/testing)
*/
public class ExampleUnitTest {
class ExampleUnitTest {
@Test
public void addition_isCorrect() {
assertEquals(4, 2 + 2);
fun addition_isCorrect() {
Assert.assertEquals(4, (2 + 2).toLong())
}
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.5.31'
ext.kotlin_version = '1.6.0'

repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.3'
classpath 'com.android.tools.build:gradle:7.0.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

// NOTE: Do not place your application dependencies here; they belong
Expand Down
12 changes: 6 additions & 6 deletions slider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ android {
}

dependencies {
implementation 'androidx.appcompat:appcompat:1.3.1'
implementation 'androidx.core:core-ktx:1.6.0'
implementation 'androidx.appcompat:appcompat:1.4.0'
implementation 'androidx.core:core-ktx:1.7.0'

implementation 'com.google.android.material:material:1.4.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
implementation 'androidx.constraintlayout:constraintlayout:2.1.2'
implementation 'androidx.recyclerview:recyclerview:1.2.1'

// Glide
Expand All @@ -47,9 +47,9 @@ afterEvaluate {
from components.release

// You can then customize attributes of the publication as shown below.
groupId = 'com.limerse.slider'
artifactId = 'final'
version = '1.0'
groupId = 'com.aemerse'
artifactId = 'Slider'
version = '1.0.4'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion slider/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.limerse.slider">
package="com.aemerse.slider">

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

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.limerse.slider
package com.aemerse.slider

import android.content.Context
import android.graphics.Color
Expand All @@ -19,20 +19,19 @@ import androidx.annotation.Dimension
import androidx.annotation.IdRes
import androidx.annotation.LayoutRes
import androidx.constraintlayout.widget.ConstraintLayout
import androidx.core.content.ContextCompat
import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.OnLifecycleEvent
import androidx.recyclerview.widget.*
import me.relex.circleindicator.CircleIndicator2
import com.limerse.slider.adapter.FiniteCarouselAdapter
import com.limerse.slider.adapter.InfiniteCarouselAdapter
import com.limerse.slider.listener.CarouselListener
import com.limerse.slider.listener.CarouselOnScrollListener
import com.limerse.slider.model.CarouselGravity
import com.limerse.slider.model.CarouselItem
import com.limerse.slider.model.CarouselType
import com.limerse.slider.utils.*
import com.aemerse.slider.adapter.FiniteCarouselAdapter
import com.aemerse.slider.adapter.InfiniteCarouselAdapter
import com.aemerse.slider.listener.CarouselListener
import com.aemerse.slider.listener.CarouselOnScrollListener
import com.aemerse.slider.model.CarouselGravity
import com.aemerse.slider.model.CarouselItem
import com.aemerse.slider.model.CarouselType
import com.aemerse.slider.utils.*
import org.jetbrains.annotations.NotNull
import org.jetbrains.annotations.Nullable

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package com.limerse.slider.adapter
package com.aemerse.slider.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import android.view.ViewTreeObserver
import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import androidx.viewbinding.ViewBinding
import com.limerse.slider.databinding.ItemCarouselBinding
import com.limerse.slider.listener.CarouselListener
import com.limerse.slider.model.CarouselGravity
import com.limerse.slider.model.CarouselItem
import com.limerse.slider.model.CarouselType
import com.limerse.slider.utils.CarouselItemDecoration
import com.limerse.slider.utils.setImage
import com.aemerse.slider.databinding.ItemCarouselBinding
import com.aemerse.slider.listener.CarouselListener
import com.aemerse.slider.model.CarouselGravity
import com.aemerse.slider.model.CarouselItem
import com.aemerse.slider.model.CarouselType
import com.aemerse.slider.utils.CarouselItemDecoration
import com.aemerse.slider.utils.setImage

open class FiniteCarouselAdapter(
private val recyclerView: RecyclerView,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.limerse.slider.adapter
package com.aemerse.slider.adapter

import android.widget.ImageView
import androidx.recyclerview.widget.RecyclerView
import com.limerse.slider.model.CarouselGravity
import com.limerse.slider.model.CarouselItem
import com.limerse.slider.model.CarouselType
import com.aemerse.slider.model.CarouselGravity
import com.aemerse.slider.model.CarouselItem
import com.aemerse.slider.model.CarouselType

class InfiniteCarouselAdapter(
recyclerView: RecyclerView,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.limerse.slider.listener
package com.aemerse.slider.listener

import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.viewbinding.ViewBinding
import com.limerse.slider.model.CarouselItem
import com.aemerse.slider.model.CarouselItem

interface CarouselListener {
/**
Expand Down
Loading

0 comments on commit f8e9274

Please sign in to comment.