Skip to content

Commit 7a74869

Browse files
committed
Initial stable public release
0 parents  commit 7a74869

60 files changed

Lines changed: 75019 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/android.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build Android App
2+
3+
on:
4+
push:
5+
branches: [ "main", "master" ]
6+
paths:
7+
- 'AndroidApp/**'
8+
pull_request:
9+
branches: [ "main", "master" ]
10+
paths:
11+
- 'AndroidApp/**'
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
20+
- name: set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
cache: gradle
26+
27+
- name: Grant execute permission for gradlew
28+
run: chmod +x AndroidApp/gradlew
29+
30+
- name: Build Debug APK
31+
working-directory: AndroidApp
32+
run: ./gradlew assembleDebug
33+
34+
- name: Upload APK
35+
uses: actions/upload-artifact@v3
36+
with:
37+
name: RobotCarController-APK
38+
path: AndroidApp/app/build/outputs/apk/debug/app-debug.apk

.gitignore

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Built application files
2+
*.apk
3+
*.aar
4+
*.ap_
5+
*.aab
6+
7+
# OS-specific files
8+
.DS_Store
9+
Thumbs.db
10+
11+
# IDE files
12+
.idea/
13+
.gradle/
14+
local.properties
15+
/.idea/workspace.xml
16+
/.idea/tasks.xml
17+
/.idea/gradle.xml
18+
/.idea/assetWizardSettings.xml
19+
/.idea/dictionaries
20+
/.idea/libraries
21+
/.idea/caches
22+
.cxx/
23+
24+
# Gradle generated files
25+
build/
26+
app/build/
27+
*/build/
28+
captures/
29+
.externalNativeBuild
30+
.cxx
31+
*.iml
32+
*.hprof
33+
34+
# Log Files
35+
*.log
36+
37+
# Keystore files (WARNING: Only ignore if this is a public repo!)
38+
*.jks
39+
*.keystore
40+
41+
# Google Services (e.g. APIs, Firebase)
42+
google-services.json

AndroidApp/app/build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
plugins {
2+
id 'com.android.application'
3+
}
4+
5+
android {
6+
namespace 'com.krishna.robotcar'
7+
compileSdk 35
8+
9+
defaultConfig {
10+
applicationId "com.krishna.robotcar"
11+
minSdk 21
12+
targetSdk 35
13+
versionCode 1
14+
versionName "1.0"
15+
}
16+
17+
buildTypes {
18+
release {
19+
minifyEnabled false
20+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
21+
}
22+
debug {
23+
debuggable true
24+
}
25+
}
26+
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
31+
}
32+
33+
dependencies {
34+
implementation 'androidx.appcompat:appcompat:1.6.1'
35+
implementation 'androidx.core:core:1.12.0'
36+
}
37+
38+
configurations.all {
39+
resolutionStrategy {
40+
force 'org.jetbrains.kotlin:kotlin-stdlib:1.9.22'
41+
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.9.22'
42+
force 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.22'
43+
}
44+
}

AndroidApp/app/proguard-rules.pro

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Add project specific ProGuard rules here.
2+
-keepattributes JavascriptInterface
3+
-keepclassmembers class com.krishna.robotcar.MainActivity$BluetoothBridge {
4+
@android.webkit.JavascriptInterface <methods>;
5+
}
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
xmlns:tools="http://schemas.android.com/tools">
4+
5+
<!-- Bluetooth permissions -->
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.BLUETOOTH_CONNECT" />
9+
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
10+
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
11+
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
12+
<uses-permission android:name="android.permission.INTERNET" />
13+
14+
<application
15+
android:allowBackup="true"
16+
android:icon="@mipmap/ic_launcher"
17+
android:label="Robot Car"
18+
android:theme="@style/Theme.RobotCar"
19+
android:usesCleartextTraffic="true"
20+
android:hardwareAccelerated="true"
21+
tools:targetApi="31">
22+
23+
<activity
24+
android:name=".MainActivity"
25+
android:exported="true"
26+
android:configChanges="orientation|screenSize|keyboardHidden"
27+
android:screenOrientation="portrait">
28+
<intent-filter>
29+
<action android:name="android.intent.action.MAIN" />
30+
<category android:name="android.intent.category.LAUNCHER" />
31+
</intent-filter>
32+
</activity>
33+
</application>
34+
</manifest>
Lines changed: 28 additions & 0 deletions
Loading

AndroidApp/app/src/main/assets/Diagram.svg

Lines changed: 14848 additions & 0 deletions
Loading
Lines changed: 26 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)