Skip to content

Commit

Permalink
Issue bumble-tech#47 - Converted customisations module from Android t…
Browse files Browse the repository at this point in the history
…o Java
  • Loading branch information
LachlanMcKee committed Aug 1, 2022
1 parent fb316b1 commit 983814f
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 27 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Pending changes

- [#38](https://github.com/bumble-tech/appyx/pull/38) – Added: JUnit5 support.
- [#47](https://github.com/bumble-tech/appyx/issues/47) – Updated: The 'customisations' module is now pure Java/Kotlin.

## 1.0-alpha02

Expand Down
24 changes: 5 additions & 19 deletions customisations/build.gradle
Original file line number Diff line number Diff line change
@@ -1,25 +1,11 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'java-library'
id 'kotlin'
}

apply from: '../gradle/publication.gradle'

android {
namespace = "com.bumble.appyx.utils.customisations"
compileSdk 32

defaultConfig {
minSdk 21
targetSdk 32

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
2 changes: 0 additions & 2 deletions customisations/src/main/AndroidManifest.xml

This file was deleted.

23 changes: 17 additions & 6 deletions gradle/publication.gradle
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
apply plugin: 'maven-publish'
apply plugin: 'signing'

android {
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
if (pluginManager.hasPlugin("com.android.library")) {
android {
publishing {
singleVariant('release') {
withSourcesJar()
withJavadocJar()
}
}
}
} else {
java {
withJavadocJar()
withSourcesJar()
}
}

afterEvaluate { Project project ->
publishing {
publications {
appyxRelease(MavenPublication) {
from components.release
if (pluginManager.hasPlugin("com.android.library")) {
from components.release
} else {
from components.java
}
groupId = 'com.bumble.appyx'
version = project.findProperty('snapshot') == 'true' ? 'main-SNAPSHOT' : '1.0-alpha02'

Expand Down

0 comments on commit 983814f

Please sign in to comment.