Skip to content

Commit

Permalink
Remove unused dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves committed Mar 18, 2020
1 parent 7f060da commit ed54e50
Show file tree
Hide file tree
Showing 7 changed files with 258 additions and 248 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ PowerMenu can be fully customized and used for popup dialogs. <br>
[![Download](https://api.bintray.com/packages/devmagician/maven/powermenu/images/download.svg)](https://bintray.com/devmagician/maven/powermenu/_latestVersion)
[![Jitpack](https://jitpack.io/v/skydoves/PowerMenu.svg)](https://jitpack.io/#skydoves/PowerMenu)

I really appreciate that 🔥Power Menu is used in more than +60,000 project's dependency all over the 🌎world. <br>
I really appreciate that 🔥Power Menu is used in more than __90,000+__ project's dependency all over the 🌎world. <br>

![screenshot1903218121](https://user-images.githubusercontent.com/24237865/64470618-49c2cb80-d181-11e9-99b4-0e14a20a86a0.png)

Expand Down
1 change: 0 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ android {
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$versions.kotlin"
implementation "com.google.android.material:material:$versions.googleMaterial"
implementation "de.hdodenhof:circleimageview:$versions.circleimageview"
implementation project(":powermenu")
}

Expand Down
7 changes: 5 additions & 2 deletions app/src/main/res/layout/item_name_card.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
Expand All @@ -14,12 +15,14 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<de.hdodenhof.circleimageview.CircleImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/item_name_card_profile"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_margin="10dp"
android:src="@drawable/face3" />
android:scaleType="center"
android:src="@drawable/face3"
app:shapeAppearanceOverlay="@style/CircleImageStyle" />

<TextView
android:id="@+id/item_name_card_name"
Expand Down
18 changes: 12 additions & 6 deletions app/src/main/res/layout/layout_main_body.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<de.hdodenhof.circleimageview.CircleImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profile1"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_margin="10dp"
android:onClick="onAlert"
android:src="@drawable/face2" />
android:scaleType="fitXY"
android:src="@drawable/face2"
app:shapeAppearanceOverlay="@style/CircleImageStyle" />

<TextView
android:layout_width="wrap_content"
Expand Down Expand Up @@ -82,13 +84,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<de.hdodenhof.circleimageview.CircleImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profile2"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_margin="10dp"
android:onClick="onDialog"
android:src="@drawable/face1" />
android:scaleType="fitXY"
android:src="@drawable/face1"
app:shapeAppearanceOverlay="@style/CircleImageStyle" />

<TextView
android:layout_width="wrap_content"
Expand Down Expand Up @@ -142,13 +146,15 @@
android:layout_width="match_parent"
android:layout_height="wrap_content">

<de.hdodenhof.circleimageview.CircleImageView
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/profile3"
android:layout_width="65dp"
android:layout_height="65dp"
android:layout_margin="10dp"
android:onClick="onCustomDialog"
android:src="@drawable/face3" />
android:scaleType="fitXY"
android:src="@drawable/face3"
app:shapeAppearanceOverlay="@style/CircleImageStyle" />

<TextView
android:layout_width="wrap_content"
Expand Down
19 changes: 11 additions & 8 deletions app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorControlHighlight">@color/colorPrimary</item>
</style>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="colorControlHighlight">@color/colorPrimary</item>
</style>

<style name="CircleImageStyle" parent="">
<item name="cornerFamily">rounded</item>
<item name="cornerSize">50%</item>
</style>

</resources>
11 changes: 5 additions & 6 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ ext.versions = [
versionName : '2.1.2',

gradleBuildTool : '3.5.3',
spotlessGradle : '3.26.1',
bintrayRelease : '0.9',
spotlessGradle : '3.27.2',
bintrayRelease : '0.9.2',

kotlin : '1.3.61',
androidxAppcompat : '1.2.0-alpha01',
kotlin : '1.3.70',
androidxAppcompat : '1.2.0-alpha03',
cardView : '1.0.0',

// for demo
googleMaterial : '1.2.0-alpha03',
circleimageview : '3.0.1'
googleMaterial : '1.2.0-alpha05',
]
Loading

0 comments on commit ed54e50

Please sign in to comment.