Skip to content

Commit

Permalink
Change package and directory names to jumpingminds
Browse files Browse the repository at this point in the history
  • Loading branch information
piyushgupta27 committed Apr 6, 2022
1 parent 04d8492 commit 9002fff
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 38 deletions.
3 changes: 2 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ A rating scale android library

A customizable rating scale supporting a 1-10 scale.

[![](https://jitpack.io/v/Tilak1114/RatingScale.svg)](https://jitpack.io/#Tilak1114/RatingScale)
[![](https://jitpack.io/v/jumpingminds/JMRatingScale.svg)](https://jitpack.io/#jumpingminds/JMRatingScale)

![screenshot](img/ss1.png)
<br />
Expand All @@ -20,7 +20,7 @@ A customizable rating scale supporting a 1-10 scale.
android:layout_height="match_parent"
tools:context=".MainActivity">

<com.tilak.ratingscale.RatingScale
<com.jumpingminds.jmratingscale.JMRatingScale
android:layout_width="0dp"
android:layout_height="wrap_content"
app:layout_constraintBottom_toBottomOf="parent"
Expand All @@ -41,6 +41,6 @@ A customizable rating scale supporting a 1-10 scale.
//...
dependencies {
//...
implementation 'com.github.Tilak1114:RatingScale:{latest-version}'
implementation 'com.github.jumpingminds:JMRatingScale:{latest-version}'
}
```
6 changes: 3 additions & 3 deletions RatingScale/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ afterEvaluate {
release(MavenPublication) {
from components.release

groupId = 'com.github.Tilak1114'
artifactId = 'rating-scale'
groupId = 'com.github.jumping-minds'
artifactId = 'jm-rating-scale'
version = '1.0'
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tilak.ratingscaleex
package com.jumpingminds.jmratingscale

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.tilak.ratingscaleex", appContext.packageName)
assertEquals("com.jumpingminds.jmratingscale.test", appContext.packageName)
}
}
}
4 changes: 2 additions & 2 deletions RatingScale/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.tilak.ratingscale">
package="com.jumpingminds.jmratingscale">

</manifest>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
package com.tilak.ratingscale
package com.jumpingminds.jmratingscale

import android.annotation.SuppressLint
import android.content.Context
import android.content.res.TypedArray
import android.util.AttributeSet
import android.view.MotionEvent
import android.view.View
import androidx.annotation.DrawableRes
import androidx.appcompat.widget.AppCompatImageView
import androidx.constraintlayout.widget.ConstraintLayout
import com.tilak.ratingscale.models.RatingItem
import com.jumpingminds.jmratingscale.models.RatingItem


class RatingScale : ConstraintLayout, View.OnClickListener {
class JMRatingScale : ConstraintLayout, View.OnClickListener {

private lateinit var ratingItems: Array<RatingItem>
private var currentRating = -1
Expand Down Expand Up @@ -301,4 +300,4 @@ class RatingScale : ConstraintLayout, View.OnClickListener {
updateDrawablesOnSelection()
onRatingInteraction?.invoke(currentRating)
}
}
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package com.tilak.ratingscale.models
package com.jumpingminds.jmratingscale.models

import androidx.annotation.DrawableRes

data class RatingItem(
val id: Int,
@DrawableRes val unselectedDrawable: Int,
@DrawableRes val selectedDrawable: Int
)
)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tilak.ratingscaleex
package com.jumpingminds.jmratingscale

import org.junit.Test

Expand All @@ -14,4 +14,4 @@ class ExampleUnitTest {
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
}
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ android {
compileSdk 32

defaultConfig {
applicationId "com.tilak.ratingscaleex"
applicationId "com.jumpingminds.jmratingscaleexample"
minSdk 21
targetSdk 32
versionCode 1
Expand Down Expand Up @@ -41,4 +41,4 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tilak.ratingscale
package com.jumpingminds.ratingscaleex

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.tilak.ratingscale.test", appContext.packageName)
assertEquals("com.jumpingminds.ratingscaleex", 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.tilak.ratingscaleex">
package="com.jumpingminds.ratingscaleex">

<application
android:allowBackup="true"
Expand All @@ -10,7 +10,7 @@
android:supportsRtl="true"
android:theme="@style/Theme.RatingScaleExample">
<activity
android:name=".MainActivity"
android:name="com.jumpingminds.ratingscaleex.MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand All @@ -20,4 +20,4 @@
</activity>
</application>

</manifest>
</manifest>
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
package com.tilak.ratingscaleex
package com.jumpingminds.ratingscaleex

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Toast
import com.tilak.ratingscale.RatingScale
import com.jumpingminds.jmratingscale.JMRatingScale

class MainActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)

val ratingScale = findViewById<RatingScale>(R.id.ratingscale)
val ratingScale = findViewById<JMRatingScale>(R.id.ratingscale)

ratingScale.setOnRatingListener { rating ->
Log.d("rating", rating.toString())
}
}
}
}
4 changes: 2 additions & 2 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
android:layout_height="match_parent"
tools:context=".MainActivity">

<com.tilak.ratingscale.RatingScale
<com.jumpingminds.jmratingscale.JMRatingScale
android:id="@+id/ratingscale"
android:layout_width="0dp"
android:layout_height="wrap_content"
Expand All @@ -16,4 +16,4 @@
app:layout_constraintTop_toTopOf="parent"
app:rating="0" />

</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tilak.ratingscale
package com.jumpingminds.ratingscaleex

import org.junit.Test

Expand All @@ -14,4 +14,4 @@ class ExampleUnitTest {
fun addition_isCorrect() {
assertEquals(4, 2 + 2)
}
}
}

0 comments on commit 9002fff

Please sign in to comment.