Skip to content

Commit

Permalink
Merge pull request #231 from pebble-dev/rws-fw-update
Browse files Browse the repository at this point in the history
Firmware updates support
  • Loading branch information
crc-32 authored Jun 15, 2024
2 parents 41b48a7 + cf33274 commit ed350fd
Show file tree
Hide file tree
Showing 196 changed files with 13,898 additions and 9,520 deletions.
4 changes: 0 additions & 4 deletions .fvm/fvm_config.json

This file was deleted.

4 changes: 4 additions & 0 deletions .fvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"flutter": "3.7.12",
"flavors": {}
}
4 changes: 2 additions & 2 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- uses: dart-lang/[email protected]
- uses: actions/setup-java@v1
with:
java-version: '12.x'
java-version: '17'
- run: dart pub global activate fvm
- run: fvm install
- run: fvm flutter pub get
Expand All @@ -32,7 +32,7 @@ jobs:
- run: fvm flutter build apk --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: debug-apk
path: build/app/outputs/apk/debug/app-debug.apk
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
java-version: '17'
- uses: dart-lang/[email protected]
- run: dart pub global activate fvm
- run: fvm install
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: '12.x'
java-version: '17'
- uses: dart-lang/[email protected]
- run: dart pub global activate fvm
- run: echo $KEY_JKS | base64 -d > android/key.jks
Expand All @@ -33,7 +33,7 @@ jobs:
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
ALIAS_PASSWORD: ${{ secrets.ALIAS_PASSWORD }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: release-apk
path: build/app/outputs/apk/release/app-release.apk
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ app.*.map.json

test/**/failures/

# Flutter sdk from Flutter Version Manager
/.fvm/flutter_sdk
# Flutter Version Manager
/.fvm
42 changes: 23 additions & 19 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,26 +34,26 @@ android {
if (System.getenv("ANDROID_NDK_HOME") != null) {
ndkPath "$System.env.ANDROID_NDK_HOME"
}
compileSdkVersion 33
compileSdk 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
}

lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false
}

defaultConfig {
applicationId "io.rebble.cobble"
minSdkVersion 21
targetSdkVersion 30
minSdkVersion 29
targetSdkVersion 34
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
android.defaultConfig.vectorDrawables.useSupportLibrary = true
manifestPlaceholders = [
//pebbleKitProviderAuthority: 'com.getpebble.android.provider.basalt' // This makes the app incompatible with the official Pebble app
pebbleKitProviderAuthority: 'io.rebble.cobble.provider'
]
}
signingConfigs {
release {
Expand All @@ -74,42 +74,45 @@ android {
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
coreLibraryDesugaringEnabled true
}
// For Kotlin projects
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-Xopt-in=kotlin.ExperimentalUnsignedTypes"
namespace 'io.rebble.cobble'
lint {
checkReleaseBuilds false
disable 'InvalidPackage'
}
}
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
kotlinOptions {
freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlin.RequiresOptIn"
freeCompilerArgs += "-opt-in=kotlin.ExperimentalUnsignedTypes"
freeCompilerArgs += "-opt-in=kotlinx.serialization.ExperimentalSerializationApi"
}
}

flutter {
source '../..'
}

def libpebblecommon_version = '0.1.4'
def coroutinesVersion = "1.6.0"
def lifecycleVersion = "2.2.0"
def libpebblecommon_version = '0.1.17'
def coroutinesVersion = "1.7.3"
def lifecycleVersion = "2.8.0"
def timberVersion = "5.0.1"
def androidxCoreVersion = '1.3.2'
def androidxCoreVersion = '1.13.1'
def daggerVersion = '2.51.1'
def workManagerVersion = '2.4.0'
def workManagerVersion = '2.9.0'
def okioVersion = '3.9.0'
def serializationJsonVersion = '1.6.3'

def junitVersion = '4.13.2'
def androidxTestVersion = "1.4.0"
def androidxTestVersion = "1.5.0"

dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.4'
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutinesVersion"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$serializationJsonVersion"
implementation "io.rebble.libpebblecommon:libpebblecommon-android:$libpebblecommon_version"
Expand All @@ -123,6 +126,7 @@ dependencies {
implementation "com.squareup.okio:okio:$okioVersion"

implementation "com.google.dagger:dagger:$daggerVersion"
implementation project(':pebble_bt_transport')
kapt "com.google.dagger:dagger-compiler:$daggerVersion"

testImplementation "junit:junit:$junitVersion"
Expand Down

This file was deleted.

3 changes: 1 addition & 2 deletions android/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.rebble.cobble">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
Expand Down
Loading

0 comments on commit ed350fd

Please sign in to comment.