Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Commit cd180cd

Browse files
committed
configuration updates for jitpack publication.
1 parent 47d44e5 commit cd180cd

File tree

5 files changed

+26
-28
lines changed

5 files changed

+26
-28
lines changed

Bonjour-In-Flow/build.gradle

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
plugins {
22
id 'com.android.library'
3-
id 'org.jetbrains.kotlin.android'
3+
id 'kotlin-android'
44
id 'maven-publish'
55
}
66

@@ -12,8 +12,8 @@ android {
1212
minSdk 26
1313
targetSdk 33
1414

15-
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16-
consumerProguardFiles "consumer-rules.pro"
15+
// testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
16+
// consumerProguardFiles "consumer-rules.pro"
1717
}
1818

1919
buildTypes {
@@ -33,25 +33,19 @@ android {
3333

3434
dependencies {
3535

36-
implementation 'androidx.core:core-ktx:1.9.0'
37-
implementation 'androidx.appcompat:appcompat:1.5.1'
38-
3936
implementation 'com.jakewharton.timber:timber:5.0.1'
4037

41-
testImplementation 'junit:junit:4.13.2'
42-
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
43-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
4438
}
4539

4640
afterEvaluate {
4741
publishing {
4842
publications {
43+
// Creates a Maven publication called "release".
4944
release(MavenPublication) {
5045
from components.release
51-
52-
groupId = 'com.github.Self-Taught-Software-Developers'
53-
artifactId = 'bonjour-in-flow'
54-
version = '1.0.0'
46+
groupId = 'com.github.self-taught-software-developers'
47+
artifactId = 'bonjour-in-kotlin-flow'
48+
version = '1.0'
5549
}
5650
}
5751
}

gradle.properties

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ kotlin.code.style=official
2020
# Enables namespacing of each library's R class so that its R class includes only the
2121
# resources declared in the library itself and none from the library's dependencies,
2222
# thereby reducing the size of the R class for that library
23-
android.nonTransitiveRClass=true
23+
android.nonTransitiveRClass=true
24+
# Automatically convert third-party libraries to use AndroidX
25+
android.enableJetifier=true

jitpack.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
jdk:
2+
- openjdk11
3+
before_install:
4+
- ./scripts/prepareJitpackEnvironment.sh

sample/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ android {
5050

5151
dependencies {
5252

53-
implementation 'com.github.Self-Taught-Software-Developers:Bonjour-In-Kotlin-Flow:0.0.10'
53+
implementation 'com.github.Self-Taught-Software-Developers:bonjour-in-kotlin-flow:0.0.10'
5454
implementation 'androidx.core:core-ktx:1.9.0'
5555

5656
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
@@ -62,8 +62,8 @@ dependencies {
6262
implementation "androidx.compose.ui:ui-tooling-preview:$compose_ui_version"
6363
implementation 'androidx.compose.material:material:1.2.1'
6464

65-
implementation "com.google.dagger:hilt-android:2.43.2"
66-
kapt "com.google.dagger:hilt-compiler:2.43.2"
65+
implementation "com.google.dagger:hilt-android:2.44"
66+
kapt "com.google.dagger:hilt-compiler:2.44"
6767

6868
testImplementation 'junit:junit:4.13.2'
6969
androidTestImplementation 'androidx.test.ext:junit:1.1.3'

sample/src/main/java/com/cerve/co/sample/SampleViewModel.kt

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ package com.cerve.co.sample
33
import android.net.nsd.NsdServiceInfo
44
import androidx.lifecycle.ViewModel
55
import androidx.lifecycle.viewModelScope
6-
import com.cerve.co.bonjour_in_flow.BonjourInFlow.Companion.MARVELL_TYPE
7-
import com.cerve.co.bonjour_in_flow.BonjourInFlow.Companion.REALTEK_TYPE
8-
import com.cerve.co.bonjour_in_flow.TimedBonjourInFlow
6+
97
import dagger.hilt.android.lifecycle.HiltViewModel
108
import kotlinx.coroutines.flow.MutableStateFlow
119
import kotlinx.coroutines.flow.asStateFlow
@@ -14,7 +12,7 @@ import javax.inject.Inject
1412

1513
@HiltViewModel
1614
class SampleViewModel @Inject constructor(
17-
timedBonjourInFlow: TimedBonjourInFlow
15+
// timedBonjourInFlow: TimedBonjourInFlow
1816
) : ViewModel() {
1917

2018
private val _sampleUi = MutableStateFlow(SampleUiState())
@@ -39,13 +37,13 @@ class SampleViewModel @Inject constructor(
3937
// else -> _sampleUi.update { it.copy(nsdState = UiDiscoveryState.IDLE) }
4038
// }
4139
//
42-
// }
43-
timedBonjourInFlow.searchByNameWithTimeout(
44-
name = "SIMPLEconnect Fan-C6985E",
45-
types = Pair(REALTEK_TYPE, MARVELL_TYPE)
46-
)?.let {
47-
48-
}
40+
//// }
41+
// timedBonjourInFlow.searchByNameWithTimeout(
42+
// name = "SIMPLEconnect Fan-C6985E",
43+
// types = Pair(REALTEK_TYPE, MARVELL_TYPE)
44+
// )?.let {
45+
//
46+
// }
4947

5048
}
5149
}

0 commit comments

Comments
 (0)