Skip to content

Commit

Permalink
Feat:1.Refactor RcvBaseAdapter by kotlin,and add demo.
Browse files Browse the repository at this point in the history
  • Loading branch information
qinhao committed Apr 16, 2021
1 parent 58d1921 commit e8c6be2
Show file tree
Hide file tree
Showing 62 changed files with 1,578 additions and 715 deletions.
Binary file modified .idea/caches/build_file_checksums.ser
Binary file not shown.
6 changes: 6 additions & 0 deletions .idea/compiler.xml

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

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

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

40 changes: 40 additions & 0 deletions .idea/jarRepositories.xml

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

2 changes: 1 addition & 1 deletion .idea/misc.xml

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

37 changes: 28 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 26
compileSdkVersion 30
buildToolsVersion "30.0.2"

defaultConfig {
applicationId "demo.com.qinshou.demo"
minSdkVersion 15
targetSdkVersion 26
applicationId "com.qinshou.demo"
minSdkVersion 21
targetSdkVersion 30
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
Expand All @@ -16,14 +20,29 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
// 资源目录
sourceSets {
main {
res.srcDirs('src/main/res/',
'src/main/res/layout/activity',
'src/main/res/layout/include',
'src/main/res/layout/item')
java.srcDirs('src/main/java'
, 'src/main/kotlin')
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation project(path: ':rcvbaseadapter')
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.android.support:design:26.1.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation 'com.google.android.material:material:1.3.0'
// Kotlin
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.1'
}
9 changes: 7 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="demo.com.qinshou.rcvbaseadapterdemo">
package="com.qinshou.demo">

<application
android:allowBackup="true"
Expand All @@ -9,13 +9,18 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name="com.qinshou.rcvbaseadapterdemo.MainActivity">
<activity android:name="com.qinshou.demo.MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

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

<activity android:name=".OneToOneActivity" />
<activity android:name=".ManyToManyActivity" />
<activity android:name=".OneToManyActivity" />
<activity android:name=".SpecialItemActivity" />
</application>

</manifest>

This file was deleted.

38 changes: 0 additions & 38 deletions app/src/main/java/com/qinshou/rcvbaseadapterdemo/MainActivity.java

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 0 additions & 14 deletions app/src/main/java/com/qinshou/rcvbaseadapterdemo/TestAdapter.java

This file was deleted.

Loading

0 comments on commit e8c6be2

Please sign in to comment.