Skip to content

Commit 49b8de6

Browse files
author
wangpeng
committed
change package
1 parent 6d90327 commit 49b8de6

32 files changed

Lines changed: 232 additions & 367 deletions

.idea/.name

Lines changed: 0 additions & 1 deletion
This file was deleted.

.idea/gradle.xml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
## Usage
1111
1. add library
1212

13-
`compile 'ch.ielse:switchbutton:1.0.1'`
13+
`compile 'com.github.iielse.switchbutton:switchbutton:1.0.4'`
1414

1515
2. xml
1616
```
17-
<ch.ielse.view.SwitchView
17+
<com.github.iielse.switchbutton.SwitchView
1818
android:layout_width="wrap_content"
1919
android:layout_height="wrap_content"/>
2020
```

app/build.gradle

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.android.application'
22

33
android {
4-
compileSdkVersion 23
5-
buildToolsVersion "23.0.2"
4+
compileSdkVersion 29
5+
buildToolsVersion "29.0.2"
66

77
defaultConfig {
8-
applicationId "ch.ielse.demo"
9-
minSdkVersion 10
10-
targetSdkVersion 23
8+
applicationId "com.github.iielse.switchbutton.demo"
9+
minSdkVersion 14
10+
targetSdkVersion 29
1111
versionCode 1
12-
versionName "1.0"
12+
versionName "1.0.0"
1313
}
1414
buildTypes {
1515
release {
@@ -20,9 +20,7 @@ android {
2020
}
2121

2222
dependencies {
23-
compile 'com.android.support:appcompat-v7:23.3.0'
24-
compile 'com.android.support:design:23.3.0'
25-
// compile project(':switchbutton')
26-
27-
compile 'ch.ielse:switchbutton:1.0.1'
23+
implementation 'androidx.appcompat:appcompat:1.1.0'
24+
implementation 'androidx.recyclerview:recyclerview:1.1.0'
25+
implementation project(':switchbutton')
2826
}

app/src/androidTest/java/ch/ielse/view/ApplicationTest.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest package="ch.ielse.demo"
2+
<manifest package="com.github.iielse.switchbutton.demo"
33
xmlns:android="http://schemas.android.com/apk/res/android">
44

55
<application
6-
android:allowBackup="true"
76
android:icon="@mipmap/ic_launcher"
87
android:label="@string/app_name"
98
android:supportsRtl="true"

app/src/main/java/ch/ielse/demo/APIIntroActivity.java renamed to app/src/main/java/com/github/iielse/switchbutton/demo/APIIntroActivity.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
package ch.ielse.demo;
1+
package com.github.iielse.switchbutton.demo;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
5-
import android.support.v7.widget.Toolbar;
4+
import androidx.appcompat.app.AppCompatActivity;
5+
import androidx.appcompat.widget.Toolbar;
66
import android.view.View;
77

8-
import ch.ielse.view.SwitchView;
8+
import com.github.iielse.switchbutton.SwitchView;
9+
10+
11+
912

1013
public class APIIntroActivity extends AppCompatActivity {
1114

app/src/main/java/ch/ielse/demo/ItemObject.java renamed to app/src/main/java/com/github/iielse/switchbutton/demo/ItemObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package ch.ielse.demo;
1+
package com.github.iielse.switchbutton.demo;
22

33
/**
44
* Created by LY on 2016/9/13.

app/src/main/java/ch/ielse/demo/ListActivity.java renamed to app/src/main/java/com/github/iielse/switchbutton/demo/ListActivity.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package ch.ielse.demo;
1+
package com.github.iielse.switchbutton.demo;
22

33
import android.os.Bundle;
4-
import android.support.v7.app.AppCompatActivity;
5-
import android.support.v7.widget.Toolbar;
4+
import androidx.appcompat.app.AppCompatActivity;
5+
import androidx.appcompat.widget.Toolbar;
66
import android.view.LayoutInflater;
77
import android.view.View;
88
import android.view.ViewGroup;
@@ -14,7 +14,9 @@
1414
import java.util.ArrayList;
1515
import java.util.List;
1616

17-
import ch.ielse.view.SwitchView;
17+
import com.github.iielse.switchbutton.SwitchView;
18+
19+
1820

1921
public class ListActivity extends AppCompatActivity {
2022

0 commit comments

Comments
 (0)