Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
zskingking committed Mar 18, 2020
0 parents commit 3428f3c
Show file tree
Hide file tree
Showing 254 changed files with 13,172 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

122 changes: 122 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions .idea/codeStyles/codeStyleConfig.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
93 changes: 93 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'org.greenrobot.greendao'

android {
compileSdkVersion 29
buildToolsVersion "29.0.3"

defaultConfig {
applicationId "com.example.zs_wan_android"
minSdkVersion 16
targetSdkVersion 29
versionCode 1
versionName "0.0.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}

// //配置keystore签名
// signingConfigs {
// release {
// storeFile file('/Users/edz/StudioProjects/wanandroid.jks')
// storePassword "zs120909.."
// keyAlias 'wanandroid'
// keyPassword "zs120909.."
// }
// }

buildTypes {
release {
minifyEnabled false
//signingConfig signingConfigs.release
}
debug {
minifyEnabled false
}
}

greendao {
schemaVersion 1 //当前数据库版本
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
//android官方依赖包
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'com.google.android.material:material:1.2.0-alpha05'

//第三方依赖包
//implementation 'com.github.ittianyu:BottomNavigationViewEx:2.0.4'
//rxjava 已存在3.0版本
implementation "io.reactivex.rxjava2:rxjava:$rootProject.ext.rxjavaVersion"
//rxandroid
implementation "io.reactivex.rxjava2:rxandroid:$rootProject.ext.rxandroidVersion"
implementation "com.squareup.okhttp3:okhttp:$rootProject.ext.okhttpVersion"
// Retrofit库
implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofitVersion"
implementation "com.squareup.retrofit2:converter-scalars:$rootProject.ext.retrofitVersion"
implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofitVersion"
implementation "com.squareup.retrofit2:adapter-rxjava2:$rootProject.ext.retrofitVersion"
implementation "com.squareup.okhttp3:logging-interceptor:$rootProject.ext.okhttpVersion"

implementation "com.orhanobut:logger:2.1.1"
implementation "com.github.bumptech.glide:glide:$rootProject.ext.glideVersion"
implementation "cn.bingoogolapple:bga-banner:$rootProject.ext.bannerVersion"
implementation "com.scwang.smartrefresh:SmartRefreshLayout:$rootProject.ext.refreshLayoutVersion"
implementation "com.scwang.smartrefresh:SmartRefreshHeader:$rootProject.ext.refreshHeaderVersion"
implementation "org.greenrobot:eventbus:$rootProject.ext.eventBusVersion"
implementation 'com.github.CymChad:BaseRecyclerViewAdapterHelper:2.9.50'

implementation 'com.wang.avi:library:2.1.3'
implementation 'org.greenrobot:greendao:3.2.2'

implementation 'com.github.hackware1993:MagicIndicator:1.6.0'
implementation 'pub.devrel:easypermissions:3.0.0'
implementation 'com.github.donkingliang:LabelsView:1.6.1'
implementation 'com.github.franmontiel:PersistentCookieJar:v1.0.1'

}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# 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 *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.example.zs_wan_android

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4

import org.junit.Test
import org.junit.runner.RunWith

import org.junit.Assert.*

/**
* Instrumented test, which will execute on an Android device.
*
* See [testing documentation](http://d.android.com/tools/testing).
*/
@RunWith(AndroidJUnit4::class)
class ExampleInstrumentedTest {
@Test
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("com.example.zs_wan_android", appContext.packageName)
}
}
Loading

0 comments on commit 3428f3c

Please sign in to comment.