-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53ed66f
commit 214e65b
Showing
32 changed files
with
683 additions
and
1,260 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
app/src/main/java/no/nordicsemi/android/nrftoolbox/data/Spec.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package no.nordicsemi.android.nrftoolbox.data | ||
|
||
import java.util.UUID | ||
|
||
val HTS_SERVICE_UUID: UUID = UUID.fromString("00001809-0000-1000-8000-00805f9b34fb") | ||
val BPS_SERVICE_UUID: UUID = UUID.fromString("00001810-0000-1000-8000-00805f9b34fb") |
2 changes: 1 addition & 1 deletion
2
...roid/nrftoolbox/ApplicationScopeModule.kt → ...d/nrftoolbox/di/ApplicationScopeModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
app/src/main/java/no/nordicsemi/android/nrftoolbox/di/CentralManagerModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package no.nordicsemi.android.nrftoolbox.di | ||
|
||
import android.content.Context | ||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.android.components.ViewModelComponent | ||
import dagger.hilt.android.qualifiers.ApplicationContext | ||
import kotlinx.coroutines.CoroutineScope | ||
import no.nordicsemi.kotlin.ble.client.android.CentralManager | ||
import no.nordicsemi.kotlin.ble.client.android.native | ||
|
||
@Module | ||
@InstallIn(ViewModelComponent::class) | ||
object CentralManagerModule { | ||
|
||
@Provides | ||
fun provideCentralManager( | ||
@ApplicationContext context: Context, | ||
scope: CoroutineScope | ||
): CentralManager { | ||
return CentralManager.Factory.native(context, scope) | ||
} | ||
} |
127 changes: 0 additions & 127 deletions
127
app/src/main/java/no/nordicsemi/android/nrftoolbox/view/FeatureButton.kt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.