-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
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 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
apply plugin: 'com.android.application' | ||
apply plugin: 'com.neenbedankt.android-apt' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
buildToolsVersion '23.0.3' | ||
defaultConfig { | ||
vectorDrawables.useSupportLibrary = true | ||
applicationId "com.hd.wlj.duohaowan" | ||
minSdkVersion 15 | ||
targetSdkVersion 23 | ||
versionCode 1 | ||
versionName "1.0" | ||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
signingConfigs { | ||
signConfig { | ||
storeFile file('keystory.jks')//签名文件路径, | ||
//keystore的路径通常使用项目根目录的相对路径,但也可以是使用绝对路径,尽管这不推荐 | ||
storePassword 'duohaowan' //密码 | ||
keyAlias 'duohaowan' | ||
keyPassword 'duohaowan' //密码 | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | ||
|
||
signingConfig signingConfigs.signConfig // 配置debug包的签名 | ||
} | ||
|
||
debug { | ||
signingConfig signingConfigs.signConfig // 配置debug包的签名 | ||
} | ||
} | ||
} | ||
|
||
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 project(':base') | ||
compile project(':gesturelock') | ||
compile project(':third') | ||
//添加这一句 | ||
compile 'com.android.support:appcompat-v7:23.4.0' | ||
compile 'com.android.support:design:23.4.0' | ||
compile 'com.android.support:recyclerview-v7:23.4.0' | ||
compile 'com.android.support:cardview-v7:23.4.0' | ||
compile 'com.jakewharton:butterknife:8.4.0' | ||
compile 'com.android.support:support-v4:23.4.0' | ||
compile 'com.github.bumptech.glide:glide:3.7.0' | ||
testCompile 'junit:junit:4.12' | ||
apt 'com.jakewharton:butterknife-compiler:8.4.0' | ||
compile 'jp.wasabeef:glide-transformations:2.0.1' | ||
} |
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 /Users/wlj/Library/Android/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 *; | ||
#} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.hd.wlj.duohaowan; | ||
|
||
import android.content.Context; | ||
import android.support.test.InstrumentationRegistry; | ||
import android.support.test.runner.AndroidJUnit4; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
|
||
import static org.junit.Assert.*; | ||
|
||
/** | ||
* Instrumentation test, which will execute on an Android device. | ||
* | ||
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | ||
*/ | ||
@RunWith(AndroidJUnit4.class) | ||
public class ExampleInstrumentedTest { | ||
@Test | ||
public void useAppContext() throws Exception { | ||
// Context of the app under test. | ||
Context appContext = InstrumentationRegistry.getTargetContext(); | ||
|
||
assertEquals("com.hd.wlj.duohaowan", appContext.getPackageName()); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.hd.wlj.duohaowan"> | ||
|
||
<!-- To auto-complete the email text field in the login form with the user's emails --> | ||
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> | ||
<uses-permission android:name="android.permission.READ_PROFILE" /> | ||
<uses-permission android:name="android.permission.READ_CONTACTS" /> | ||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
|
||
<application | ||
android:name=".App" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
<activity | ||
android:name=".wxapi.WXEntryActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity | ||
android:name=".MainActivity" | ||
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.LoginActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity | ||
android:name=".ui.RegesterActivity" | ||
android:label="@string/title_activity_regester" | ||
android:screenOrientation="portrait"></activity> | ||
<activity | ||
android:name=".ui.ForgetPSWActivity" | ||
android:screenOrientation="portrait" /> | ||
<activity | ||
android:name=".ui.detailswork.WorkDetailsActivity" | ||
android:screenOrientation="portrait"></activity> | ||
</application> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package com.hd.wlj.duohaowan; | ||
|
||
import com.wlj.base.util.AppContext; | ||
|
||
/** | ||
* Created by wlj on 2016/10/24. | ||
*/ | ||
|
||
public class App extends AppContext { | ||
|
||
} |