-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
第一次提交
- Loading branch information
Showing
111 changed files
with
7,426 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto | ||
|
||
# Custom for Visual Studio | ||
*.cs diff=csharp | ||
|
||
# Standard to msysgit | ||
*.doc diff=astextplain | ||
*.DOC diff=astextplain | ||
*.docx diff=astextplain | ||
*.DOCX diff=astextplain | ||
*.dot diff=astextplain | ||
*.DOT diff=astextplain | ||
*.pdf diff=astextplain | ||
*.PDF diff=astextplain | ||
*.rtf diff=astextplain | ||
*.RTF diff=astextplain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/.idea/libraries | ||
.DS_Store | ||
|
||
# Built application files | ||
*.apk | ||
*.ap_ | ||
|
||
# Files for the ART/Dalvik VM | ||
*.dex | ||
|
||
# Java class files | ||
*.class | ||
|
||
# Generated files | ||
bin/ | ||
gen/ | ||
out/ | ||
|
||
# Gradle files | ||
.gradle/ | ||
build/ | ||
|
||
# Local configuration file (sdk path, etc) | ||
local.properties | ||
|
||
# Proguard folder generated by Eclipse | ||
proguard/ | ||
|
||
# Log Files | ||
*.log | ||
|
||
# Android Studio Navigation editor temp files | ||
.navigation/ | ||
|
||
# Android Studio captures folder | ||
captures/ | ||
|
||
# Intellij | ||
*.iml | ||
.idea/workspace.xml | ||
|
||
# Keystore files | ||
*.jks |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion '24.0.0' | ||
defaultConfig { | ||
applicationId "com.haibao.store.myapplication" | ||
minSdkVersion 19 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(include: ['*.jar'], dir: 'libs') | ||
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | ||
exclude group: 'com.android.support', module: 'support-annotations' | ||
}) | ||
compile 'com.android.support:appcompat-v7:24.0.0' | ||
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha3' | ||
testCompile 'junit:junit:4.12' | ||
compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3' | ||
compile 'com.squareup.retrofit2:adapter-rxjava:2.0.0-beta3' | ||
compile 'com.squareup.retrofit2:converter-gson:2.0.0-beta3' | ||
compile 'com.squareup.okhttp3:logging-interceptor:3.1.2' | ||
compile 'com.google.code.gson:gson:2.6.2' | ||
compile 'io.reactivex:rxandroid:1.1.0' | ||
compile 'io.reactivex:rxjava:1.1.0' | ||
compile 'com.android.support:appcompat-v7:23.1.0' | ||
compile 'com.android.support:cardview-v7:23.1.0' | ||
compile 'com.android.support:recyclerview-v7:23.1.0' | ||
compile 'com.android.support:design:23.1.0' | ||
compile 'com.jakewharton:butterknife:7.0.1' | ||
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.3' | ||
compile 'com.google.android.gms:play-services-appindexing:8.4.0' | ||
compile 'com.lsjwzh:materialloadingprogressbar:0.5.8-RELEASE' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 D:\Android_studio\android-sdk-windows/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 *; | ||
#} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.haibao.store.myapplication"> | ||
|
||
<uses-permission android:name="${applicationId}.permission.JPUSH_MESSAGE" /> | ||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH" /> | ||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | ||
<uses-permission android:name="android.permission.CALL_PHONE" /> | ||
<uses-permission android:name="android.permission.CAMERA" /> | ||
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | ||
<uses-permission android:name="android.permission.FLASHLIGHT" /> | ||
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | ||
<!-- suppress DeprecatedClassUsageInspection --> | ||
<uses-permission android:name="android.permission.GET_TASKS" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> | ||
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | ||
<uses-permission android:name="android.permission.READ_CONTACTS" /> | ||
<uses-permission android:name="android.permission.READ_LOGS" /> | ||
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | ||
<uses-permission android:name="android.permission.RECEIVE_USER_PRESENT" /> | ||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> | ||
<uses-permission android:name="android.permission.RECORD_VIDEO" /> | ||
<uses-permission android:name="android.permission.SET_DEBUG_APP" /> | ||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | ||
<uses-permission android:name="android.permission.USE_CREDENTIALS" /> | ||
<uses-permission android:name="android.permission.VIBRATE" /> | ||
<uses-permission android:name="android.permission.WAKE_LOCK" /> | ||
|
||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_SETTINGS" /> | ||
|
||
<application | ||
android:name=".base.HaiBaoApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
|
||
<activity | ||
android:name=".ui.Mime.WelcomeActivity" | ||
android:screenOrientation="portrait"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name=".ui.Mime.LoginPage.LoginActivity" /> | ||
|
||
</application> | ||
|
||
</manifest> |
59 changes: 59 additions & 0 deletions
59
...P_framwork/app/src/main/java/com/haibao/store/myapplication/HybridModer/AlertMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
package com.haibao.store.myapplication.HybridModer; | ||
|
||
|
||
public class AlertMessage extends BaseHyrid{ | ||
private String cancel_callback; | ||
private String cancel_title; | ||
private String confirm_callback; | ||
private String confirm_title; | ||
private String content; | ||
private String title; | ||
|
||
public String getCancel_callback() { | ||
return cancel_callback; | ||
} | ||
|
||
public void setCancel_callback(String cancel_callback) { | ||
this.cancel_callback = cancel_callback; | ||
} | ||
|
||
public String getCancel_title() { | ||
return cancel_title; | ||
} | ||
|
||
public void setCancel_title(String cancel_title) { | ||
this.cancel_title = cancel_title; | ||
} | ||
|
||
public String getConfirm_callback() { | ||
return confirm_callback; | ||
} | ||
|
||
public void setConfirm_callback(String confirm_callback) { | ||
this.confirm_callback = confirm_callback; | ||
} | ||
|
||
public String getConfirm_title() { | ||
return confirm_title; | ||
} | ||
|
||
public void setConfirm_title(String confirm_title) { | ||
this.confirm_title = confirm_title; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
..._MVP_framwork/app/src/main/java/com/haibao/store/myapplication/HybridModer/BaseHyrid.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package com.haibao.store.myapplication.HybridModer; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Created by anzhuo002 on 2016/6/28. | ||
*/ | ||
|
||
public class BaseHyrid implements Serializable { | ||
//处理事件的名字 | ||
public String evenName; | ||
//具体处理事件的内容,此字段不使用,只是打印 | ||
public String msg; | ||
|
||
public String getEvenName() { | ||
return evenName; | ||
} | ||
|
||
public void setEvenName(String evenName) { | ||
this.evenName = evenName; | ||
} | ||
|
||
public String getMsg() { | ||
return msg; | ||
} | ||
|
||
public void setMsg(String msg) { | ||
this.msg = msg; | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
..._framwork/app/src/main/java/com/haibao/store/myapplication/HybridModer/CustomMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.haibao.store.myapplication.HybridModer; | ||
|
||
/** | ||
* Created by anzhuo002 on 2016/6/28. | ||
*/ | ||
|
||
public class CustomMessage extends BaseHyrid{ | ||
private String content; | ||
private int type; | ||
|
||
public int getType() { | ||
return type; | ||
} | ||
|
||
public void setType(int type) { | ||
this.type = type; | ||
} | ||
|
||
public String getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(String content) { | ||
this.content = content; | ||
} | ||
} |
Oops, something went wrong.