Skip to content

Commit

Permalink
Merge pull request #66 from Reedyuk/0.9.2
Browse files Browse the repository at this point in the history
0.9.2
  • Loading branch information
Reedyuk authored Mar 7, 2021
2 parents e6f0902 + 5872f4d commit 43523ea
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 19 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ blueFalcon.scan()
#### Install

```kotlin
implementation 'dev.bluefalcon:blue-falcon-android:0.9.1'
implementation 'dev.bluefalcon:blue-falcon-android:0.9.2'
```

And if you are using the debug variant:

```kotlin
implementation 'dev.bluefalcon:blue-falcon-android-debug:0.9.2'
```

The Android sdk requires an Application context, we do this by passing in on the BlueFalcon constructor, in this example we are calling the code from an activity(this).
Expand Down
2 changes: 1 addition & 1 deletion examples/Android-Example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ android {
}

dependencies {
implementation 'dev.bluefalcon:blue-falcon-android:0.9.1'
implementation 'dev.bluefalcon:blue-falcon-android-debug:0.9.2'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
Expand Down
35 changes: 22 additions & 13 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ import java.util.*

plugins {
kotlin("multiplatform") version "1.4.31"
id("com.android.library")
id("maven-publish")
id("signing")
}

repositories {
mavenCentral()
google()
jcenter()
}

//expose properties
Expand All @@ -33,17 +36,27 @@ val developerName: String by project
val developerEmail: String by project
val group: String by project

android {
compileSdkVersion(29)
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(24)
targetSdkVersion(29)
}
}

kotlin {

jvm("android") {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
testRuns["test"].executionTask.configure {
useJUnit()
}
android {
publishLibraryVariants("debug", "release")
}
// jvm("android") {
// compilations.all {
// kotlinOptions.jvmTarget = "1.8"
// }
// testRuns["test"].executionTask.configure {
// useJUnit()
// }
// }
js(LEGACY) {
browser {
testTask {
Expand Down Expand Up @@ -76,9 +89,7 @@ kotlin {
}

sourceSets {
val commonMain by getting {

}
val commonMain by getting {}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
Expand All @@ -87,7 +98,6 @@ kotlin {
}
val androidMain by getting {
dependencies {
compileOnly("org.robolectric:android-all:9-robolectric-4913185-2")
}
}
val jsMain by getting
Expand Down Expand Up @@ -166,4 +176,3 @@ signing {
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications)
}

2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.configureondemand = false
android.useAndroidX=true
android.enableJetifier=true

version=0.9.1
version=0.9.2
group=dev.bluefalcon
libraryName=blue-falcon

Expand Down
18 changes: 16 additions & 2 deletions library/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
pluginManagement {
repositories {
google()
jcenter()
gradlePluginPortal()
mavenCentral()
}
resolutionStrategy {
eachPlugin {
if (requested.id.namespace == "com.android" || requested.id.name == "kotlin-android-extensions") {
useModule("com.android.tools.build:gradle:4.0.1")
}
}
}
}

rootProject.name = "blue-falcon"

rootProject.name = "blue-falcon"
2 changes: 1 addition & 1 deletion library/src/androidMain/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest
xmlns:android="http://schemas.android.com/apk/res/android"
package="dev.bluefalcon.library">
package="dev.bluefalcon.blueFalcon">
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
Expand Down

0 comments on commit 43523ea

Please sign in to comment.