Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
shehuan committed Nov 7, 2018
1 parent 1bf0eb2 commit 86b56de
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 26 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ allprojects {
**Step 2. 添加项目依赖**
``` gradle
dependencies {
implementation 'com.github.Othershe:NiceImageView:1.0.1'
implementation 'com.github.Othershe:NiceImageView:1.0.2'
}
```
**Step 3. 在布局文件中添加CornerLabelView**
```
<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="10dp"
Expand Down
11 changes: 5 additions & 6 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 27
compileSdkVersion 28
defaultConfig {
applicationId "com.othershe.niceimageview.test"
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -20,12 +20,11 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.android.support:appcompat-v7:28.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

compile project(':niceimageview')
compile 'pub.devrel:easypermissions:0.4.2'
implementation project(':niceimageview')
implementation 'pub.devrel:easypermissions:0.4.2'
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.othershe.library.test;
package com.shehuan.library.test;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
Expand Down
4 changes: 2 additions & 2 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.othershe.library.test">
package="com.shehuan.library.test">

<application
android:allowBackup="true"
Expand All @@ -9,7 +9,7 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.othershe.library.test.MainActivity">
<activity android:name="com.shehuan.library.test.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.othershe.library.test;
package com.shehuan.library.test;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
Expand Down
12 changes: 6 additions & 6 deletions app/src/main/res/layout/activity_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
android:gravity="center_horizontal"
android:orientation="vertical">

<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv0"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="10dp"
android:src="@drawable/cat"
app:corner_radius="20dp" />

<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv1"
android:layout_width="200dp"
android:layout_height="200dp"
Expand All @@ -30,7 +30,7 @@
app:border_width="2dp"
app:corner_radius="20dp" />

<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv2"
android:layout_width="200dp"
android:layout_height="200dp"
Expand All @@ -43,15 +43,15 @@
app:corner_top_left_radius="60dp"
app:corner_top_right_radius="10dp" />

<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv3"
android:layout_width="200dp"
android:layout_height="200dp"
android:layout_marginTop="10dp"
android:src="@drawable/cat"
app:is_circle="true" />

<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv4"
android:layout_width="200dp"
android:layout_height="200dp"
Expand All @@ -62,7 +62,7 @@
app:is_circle="true" />


<com.othershe.library.NiceImageView
<com.shehuan.library.NiceImageView
android:id="@+id/nice_iv5"
android:layout_width="200dp"
android:layout_height="200dp"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.othershe.library.test;
package com.shehuan.library.test;

import org.junit.Test;

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.android.tools.build:gradle:3.1.4'


// NOTE: Do not place your application dependencies here; they belong
Expand Down
6 changes: 3 additions & 3 deletions niceimageview/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 27
compileSdkVersion 28

defaultConfig {
minSdkVersion 14
targetSdkVersion 27
targetSdkVersion 28
versionCode 1
versionName "1.0"

Expand All @@ -25,5 +25,5 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:appcompat-v7:28.0.0'
}
2 changes: 1 addition & 1 deletion niceimageview/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.othershe.library" />
package="com.shehuan.library" />
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.othershe.library;
package com.shehuan.library;


import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.othershe.library;
package com.shehuan.library;


import android.content.Context;
Expand Down

0 comments on commit 86b56de

Please sign in to comment.