Skip to content

Commit e2ee91e

Browse files
authored
Merge pull request #48 from Omega-R/develop
Develop to master
2 parents 2e5c7bb + 6fdabea commit e2ee91e

File tree

61 files changed

+1832
-293
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+1832
-293
lines changed

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 33 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Crash/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
apply plugin: 'com.android.library'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'com.github.dcendents.android-maven'
43

5-
group = 'com.github.Omega-R.OmegaBase'
64

75

86
android {
9-
compileSdkVersion 30
7+
compileSdkVersion 31
108

119
defaultConfig {
1210
minSdkVersion 16
13-
targetSdkVersion 30
11+
targetSdkVersion 31
1412
versionCode 1
1513
versionName "1.0"
1614

annotations/build.gradle

Lines changed: 37 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,38 @@
11
apply plugin: 'kotlin'
2-
apply plugin: 'com.github.dcendents.android-maven'
3-
group = 'com.github.Omega-R.OmegaBase'
4-
5-
dependencies {
6-
implementation fileTree(dir: 'libs', include: ['*.jar'])
7-
//noinspection DifferentStdlibGradleVersion
8-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
9-
}
2+
apply plugin: 'maven-publish'
3+
4+
5+
java {
6+
sourceCompatibility = JavaVersion.VERSION_1_8
7+
targetCompatibility = JavaVersion.VERSION_1_8
8+
}
9+
10+
publishing {
11+
publications {
12+
release(MavenPublication) {
13+
groupId = 'com.github.Omega-R.OmegaBase'
14+
artifactId = 'annotations'
15+
version project.hasProperty('version') ? project.version : gradle.gitHash()
16+
17+
afterEvaluate {
18+
from components.java
19+
}
20+
}
21+
}
22+
repositories {
23+
maven {
24+
url gradle.nexusUrl
25+
credentials {
26+
username gradle.nexusUsername
27+
password gradle.nexusPassword
28+
}
29+
}
30+
}
31+
32+
dependencies {
33+
implementation fileTree(dir: 'libs', include: ['*.jar'])
34+
implementation "org.jetbrains.kotlin:kotlin-reflect"
35+
//noinspection DifferentStdlibGradleVersion
36+
}
37+
38+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package com.omega_r.base.annotations
2+
3+
import kotlin.reflect.KClass
4+
5+
@Retention(AnnotationRetention.SOURCE)
6+
@Target(allowedTargets = [AnnotationTarget.CLASS])
7+
annotation class AutoPresenterLauncher(
8+
vararg val delegatedClass: KClass<*>,
9+
val localPresenterType: Boolean = true,
10+
)

app/build.gradle

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
apply plugin: 'com.android.application'
22
apply plugin: 'kotlin-android'
3-
apply plugin: 'kotlin-android-extensions'
43
apply plugin: 'kotlin-kapt'
4+
apply plugin: 'com.google.devtools.ksp'
5+
apply plugin: 'kotlin-parcelize'
56

67
android {
7-
compileSdkVersion 31
8+
compileSdkVersion 33
89
defaultConfig {
910
applicationId "com.omega_r.omegabase.simple"
1011
multiDexEnabled true
11-
minSdkVersion 16
12+
minSdkVersion 21
1213
targetSdkVersion 31
1314
versionCode 1
1415
versionName "1.0"
@@ -26,6 +27,7 @@ android {
2627
pickFirst 'META-INF/atomicfu.kotlin_module'
2728
pickFirst 'META-INF/kotlinx-coroutines-io.kotlin_module'
2829
pickFirst 'META-INF/library_release.kotlin_module'
30+
pickFirst 'META-INF/core_release.kotlin_module'
2931
}
3032

3133

@@ -38,28 +40,34 @@ android {
3840

3941
}
4042

43+
kotlin {
44+
sourceSets {
45+
main.kotlin.srcDirs += 'build/generated/ksp/debug/kotlin'
46+
}
47+
}
48+
4149
dependencies {
4250
implementation fileTree(include: ['*.jar'], dir: 'libs')
43-
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:${kotlin_version}"
44-
implementation 'androidx.appcompat:appcompat:1.1.0'
45-
implementation 'androidx.core:core-ktx:1.2.0-rc01'
51+
implementation 'androidx.appcompat:appcompat:1.4.0'
52+
implementation 'androidx.core:core-ktx:1.7.0'
4653
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:${kotlinCorutines_version}"
4754
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${kotlinCorutines_version}"
48-
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta3'
55+
implementation 'androidx.constraintlayout:constraintlayout:2.2.0-alpha04'
4956
implementation 'androidx.recyclerview:recyclerview:1.2.1'
5057
implementation "com.github.Omega-R.OmegaRecyclerView:omegarecyclerview:${omegaRecyclerView}"
5158

5259
implementation project(':core')
53-
implementation project(':crash')
5460

55-
kapt 'com.github.Omega-R.OmegaMoxy:moxy-compiler:2.2.0'
61+
ksp "com.github.Omega-R.OmegaMoxy:moxy-compiler:${omegaMoxy_version}"
5662
kapt project(':processor')
5763

5864
implementation 'com.github.bumptech.glide:glide:4.9.0'
5965

6066
testImplementation 'junit:junit:4.13-beta-3'
6167
androidTestImplementation 'androidx.test:runner:1.3.0-alpha02'
6268
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha02'
69+
implementation 'com.google.android.material:material:1.5.0-beta01'
6370

71+
ksp project(":mvp-processor")
6472

6573
}

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
android:supportsRtl="true"
1414
android:name=".SampleApp"
1515
android:theme="@style/AppTheme">
16-
<activity android:name="com.omega_r.base.simple.MainActivity">
16+
17+
<meta-data android:name="CRASH_SENDER_EMAIL" android:value="[email protected]"/>
18+
19+
<activity android:name="com.omega_r.base.simple.MainActivity"
20+
android:exported="true">
1721
<intent-filter>
1822
<action android:name="android.intent.action.MAIN"/>
1923

0 commit comments

Comments
 (0)