-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ci for buld and test added, readme updated
- Loading branch information
Showing
3 changed files
with
73 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: CI Gradle build | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission to Gradle wrapper | ||
run: chmod +x ./gradlew | ||
|
||
- name: Build with Gradle | ||
uses: gradle/gradle-build-action@v2.6.0 | ||
with: | ||
arguments: build |
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,33 @@ | ||
name: Android testing CI | ||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
permissions: | ||
contents: read | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 # Limit fetch depth to improve performance | ||
|
||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '17' | ||
distribution: 'adopt' | ||
|
||
- name: Grant execute permission to Gradle wrapper | ||
run: chmod +x ./gradlew | ||
|
||
- name: Unit Test | ||
run: ./gradlew testDebugUnitTest | ||
continue-on-error: true # Enable error handling and continue on failure | ||
|
||
- name: Android Test Report | ||
uses: asadmansr/android-test-report-action@v1.2.0 | ||
if: ${{ always() }} |
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 |
---|---|---|
@@ -1,13 +1,20 @@ | ||
# Bluetooth bike connection | ||
Bluetooth Ebike connector | ||
===== | ||
|
||
This is a simple app to connect to a ebike via bluetooth, get the data from it, and also send data to the bike. | ||
[![Android](https://img.shields.io/badge/Android-grey?style=&logo=android&logoColor=green)](https://www.android.com/) | ||
[![KOTLIN](https://img.shields.io/badge/Kotlin-grey?style=none&logo=Kotlin&logoColor=-5C2D91)](https://kotlinlang.org/) | ||
[![CI](https://github.com/EndikaCo/Bluetooth_bike/actions/workflows/testing.yml/badge.svg)]() | ||
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/EndikaCo/Bluetooth_bike/LICENSE) | ||
|
||
[![Android](https://img.shields.io/badge/Android-grey?style=for-the-badge&logo=android&logoColor=green)](https://www.android.com/) | ||
[![KOTLIN](https://img.shields.io/badge/Kotlin-grey?style=for-the-badge&logo=Kotlin&logoColor=-5C2D91)](https://kotlinlang.org/) | ||
[![Compose](https://img.shields.io/badge/Compose-grey?style=for-the-badge&logo=android&logoColor=green)](https://kotlinlang.org/) | ||
[![MVVM](https://img.shields.io/badge/Arch-MVVM-blue.svg?style=for-the-badge)](https://developer.android.com/jetpack/guide#recommended-app-arch) | ||
Simple app to connect to a Ebike via bluetooth, get the data from it, and send commands back to interact with it. | ||
|
||
[![Compose](https://img.shields.io/badge/Jetpack_Compose-grey?style=none&logo=)](https://kotlinlang.org/) | ||
[![Bluetooth](https://img.shields.io/badge/bluetooth-grey?style=none&logo=bluetooth&logoColor=white)]() | ||
[![Dagger](https://img.shields.io/badge/Dagger_Hilt-grey?style=&logo=)]() | ||
[![MVVM](https://img.shields.io/badge/MVVM-grey?style=&logo=)]() | ||
[![State Flow](https://img.shields.io/badge/State_Flow-grey?style=&logo=)]() | ||
[![Canvas](https://img.shields.io/badge/canvas-grey?style=none&logo=canvas&logoColor=white)]() | ||
|
||
| Devices screen | Bike screen | | ||
|--------------------------------------|-------------------------------------| | ||
| ![img.png](images/devicesScreen.png) | ![img_1.png](images/bikeScreen.png) | | ||
| | Content Cell | |