Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
wzgiceman committed Sep 29, 2016
0 parents commit 054fa29
Show file tree
Hide file tree
Showing 33 changed files with 1,024 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
*.iml
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
.externalNativeBuild
1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
28 changes: 28 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "24.0.2"
defaultConfig {
applicationId "com.wzgiceman.rxbus"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
/*rx-android-java*/
compile 'io.reactivex:rxjava:+'
compile 'com.squareup.retrofit:adapter-rxjava:+'
compile 'com.trello:rxlifecycle:+'
compile 'com.trello:rxlifecycle-components:+'
}
17 changes: 17 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in E:\Android+tool\sdk\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
20 changes: 20 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.wzgiceman.rxbus"
xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

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

</manifest>
22 changes: 22 additions & 0 deletions app/src/main/java/com/wzgiceman/event/EventChangeText.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.wzgiceman.event;

/**
* 修改文字事件
* Created by WZG on 2016/9/29.
*/

public class EventChangeText {
private String changeText;

public EventChangeText(String changeText) {
this.changeText = changeText;
}

public String getChangeText() {
return changeText;
}

public void setChangeText(String changeText) {
this.changeText = changeText;
}
}
34 changes: 34 additions & 0 deletions app/src/main/java/com/wzgiceman/rx/Message.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
package com.wzgiceman.rx;

/**
* @author wzg 2016/9/21
*/
public class Message {
private int code;
private Object object;

public Message() {

}

public Message(int code, Object o) {
this.code = code;
this.object = o;
}

public int getCode() {
return code;
}

public void setCode(int code) {
this.code = code;
}

public Object getObject() {
return object;
}

public void setObject(Object object) {
this.object = object;
}
}
Loading

0 comments on commit 054fa29

Please sign in to comment.