-
Notifications
You must be signed in to change notification settings - Fork 4
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.
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,49 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "25.0.2" | ||
defaultConfig { | ||
applicationId "com.hzu.feirty.tabmenu" | ||
minSdkVersion 15 | ||
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.2.1' | ||
testCompile 'junit:junit:4.12' | ||
compile files('libs/activation.jar') | ||
compile files('libs/additionnal.jar') | ||
compile files('libs/mail.jar') | ||
compile 'org.greenrobot:eventbus:3.0.0' | ||
compile 'com.android.support.test.espresso:espresso-core:2.2.2' | ||
compile files('libs/android-async-http-1.4.6.jar') | ||
compile files('libs/asmack-android-6.jar') | ||
compile files('libs/gson-2.5.jar') | ||
compile files('libs/httpclient-4.3.6.jar') | ||
compile files('libs/jg_filter_sdk_1.1.jar') | ||
compile files('libs/litepal-1.5.1-src.jar') | ||
compile files('libs/mid-sdk-2.20.jar') | ||
compile files('libs/MobLogCollector.jar') | ||
compile files('libs/MobTools.jar') | ||
compile files('libs/org.apache.http.legacy.jar') | ||
compile files('libs/ShareSDK-Core-2.6.3.jar') | ||
compile files('libs/SMSSDK-1.3.1.jar') | ||
compile files('libs/wup-1.0.0-SNAPSHOT.jar') | ||
compile files('libs/Xg_sdk_v2.39_20150915_1121.jar') | ||
compile files('libs/commons-email-1.1.jar') | ||
} |
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 G:\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.hzu.feirty.MailIM; | ||
|
||
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.hzu.feirty.tabmenu", appContext.getPackageName()); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.hzu.feirty.MailIM"> | ||
|
||
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
<!-- 存储器写入权限 --> | ||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
<!-- 挂载文件系统权限 --> | ||
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | ||
<uses-permission android:name="android.permission.INTERNET" /> | ||
|
||
<application | ||
android:name="com.hzu.feirty.MailIM.activity.MailApplication" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="收发作业" | ||
android:theme="@style/AppTheme" > | ||
<activity android:name="com.hzu.feirty.MailIM.activity.LoginActivity" | ||
android:label="收发作业" > | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
<activity | ||
android:name="com.hzu.feirty.MailIM.activity.MainActivity" | ||
android:label="@string/app_name" > | ||
</activity> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.CourseActivity" | ||
android:label="课程" /> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.EditMailActivity" | ||
android:label="发布作业" /> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.FileExplorerActivity" | ||
/> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.MailContentActivity" | ||
android:label="作业详情" | ||
/> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.RegisterActivity" | ||
android:label="注册"/> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.TeacherSetActivity" | ||
android:label="个人设置" /> | ||
<activity android:name="com.hzu.feirty.MailIM.activity.StudentSetActivity" | ||
android:label="个人设置" /> | ||
</application> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.hzu.feirty.MailIM.activity; | ||
|
||
import android.os.Bundle; | ||
import android.support.v7.app.AppCompatActivity; | ||
|
||
import com.hzu.feirty.MailIM.R; | ||
|
||
/** | ||
* Created by Administrator on 2017-6-27. | ||
*/ | ||
|
||
public class CourseActivity extends AppCompatActivity { | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_open); | ||
android.support.v7.app.ActionBar actionBar = getSupportActionBar(); | ||
if(actionBar != null){ | ||
actionBar.setHomeButtonEnabled(true); | ||
actionBar.setDisplayHomeAsUpEnabled(true); | ||
} | ||
} | ||
} |