Skip to content

Commit 0deb102

Browse files
authored
Add Android BLE servo central app with protocol parity docs
1 parent 0a91426 commit 0deb102

22 files changed

Lines changed: 1770 additions & 1 deletion

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea
5+
.DS_Store
6+
/build
7+
/captures
8+
.externalNativeBuild
9+
.cxx
10+
app/build
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apply(plugin = "com.android.application")
2+
apply(plugin = "org.jetbrains.kotlin.android")
3+
4+
android {
5+
namespace = "com.alexanderlavrushko.bleservo"
6+
compileSdk = 35
7+
8+
defaultConfig {
9+
applicationId = "com.alexanderlavrushko.bleservo"
10+
minSdk = 23
11+
targetSdk = 35
12+
versionCode = 1
13+
versionName = "1.0"
14+
15+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
16+
}
17+
18+
buildTypes {
19+
getByName("release") {
20+
isMinifyEnabled = false
21+
proguardFiles(
22+
getDefaultProguardFile("proguard-android-optimize.txt"),
23+
"proguard-rules.pro"
24+
)
25+
}
26+
}
27+
compileOptions {
28+
sourceCompatibility = JavaVersion.VERSION_17
29+
targetCompatibility = JavaVersion.VERSION_17
30+
}
31+
kotlinOptions {
32+
jvmTarget = "17"
33+
}
34+
}
35+
36+
dependencies {
37+
implementation("androidx.core:core-ktx:1.15.0")
38+
implementation("androidx.appcompat:appcompat:1.7.0")
39+
implementation("com.google.android.material:material:1.12.0")
40+
implementation("androidx.activity:activity-ktx:1.10.1")
41+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.7")
42+
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.8.7")
43+
44+
testImplementation("junit:junit:4.13.2")
45+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# BLE Servo Android app currently does not require custom shrinker rules.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<uses-feature android:name="android.hardware.bluetooth_le" android:required="true" />
5+
6+
<uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
7+
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
8+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" />
9+
10+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" />
11+
<uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
12+
13+
<application
14+
android:allowBackup="true"
15+
android:icon="@android:drawable/stat_sys_data_bluetooth"
16+
android:label="@string/app_name"
17+
android:roundIcon="@android:drawable/stat_sys_data_bluetooth"
18+
android:supportsRtl="true"
19+
android:theme="@style/Theme.BLEServo">
20+
<activity
21+
android:name=".ui.MainActivity"
22+
android:exported="true">
23+
<intent-filter>
24+
<action android:name="android.intent.action.MAIN" />
25+
<category android:name="android.intent.category.LAUNCHER" />
26+
</intent-filter>
27+
</activity>
28+
</application>
29+
30+
</manifest>

0 commit comments

Comments
 (0)