forked from PhilipsHue/flutter_reactive_ble
-
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.
Add Github actions and Migrate to latest Android SDK, AGP and protobu…
…f plugin (PhilipsHue#830) * chore: Migrate to latest Android SDK, AGP and protobuf plugin * Remove unused files * Bumps to Dart 2.17 minimum and upgrades melos to 3.1.0 (PhilipsHue#762) * Bumps to Dart 2.17 minimum and upgrades melos to 3.1.0 * Update root pubspec.yaml with the correct workspace name * Add GitHub actions Co-authored-by: Taym Haddadi <[email protected]> Co-authored-by: Sebastian Roth <[email protected]>
- Loading branch information
Showing
14 changed files
with
97 additions
and
107 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,59 @@ | ||
name: "Build" | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set Up Java | ||
uses: actions/[email protected] | ||
with: | ||
distribution: 'oracle' | ||
java-version: '19.0.2' | ||
|
||
- name: Set Up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: '3.16.3' | ||
channel: 'stable' | ||
|
||
- name: Set up debug keystore | ||
run: | | ||
rm -f ~/.android/debug.keystore | ||
keytool -genkeypair \ | ||
-alias androiddebugkey \ | ||
-keypass android \ | ||
-keystore ~/.android/debug.keystore \ | ||
-storepass android \ | ||
-dname 'CN=Android Debug,O=Android,C=US' \ | ||
-keyalg 'RSA' \ | ||
-keysize 2048 \ | ||
-validity 10000 | ||
- name: Quality checks monorepo | ||
run: | | ||
./bin/quality_checks.sh | ||
- name: Android native tests | ||
run: | | ||
#!/bin/bash -ex | ||
cd example/android && ls && ./gradlew detekt && ./gradlew testDebugUnitTest | ||
- name: Build android app | ||
run: | | ||
cd example && flutter build apk --debug | ||
- name: Build iOS app | ||
run: | | ||
find . -name "Podfile" -execdir pod install \; | ||
cd example && flutter build ios --debug --no-codesign |
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
android.enableJetifier=true | ||
android.defaults.buildfeatures.buildconfig=true | ||
android.enableJetifier=false | ||
android.nonFinalResIds=false | ||
android.nonTransitiveRClass=false | ||
android.useAndroidX=true | ||
org.gradle.jvmargs=-Xmx1536M |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
include ':app' | ||
|
||
def flutterProjectRoot = rootProject.projectDir.parentFile.toPath() | ||
def localPropertiesFile = new File(rootProject.projectDir, "local.properties") | ||
def properties = new Properties() | ||
|
||
def plugins = new Properties() | ||
def pluginsFile = new File(flutterProjectRoot.toFile(), '.flutter-plugins') | ||
if (pluginsFile.exists()) { | ||
pluginsFile.withReader('UTF-8') { reader -> plugins.load(reader) } | ||
} | ||
assert localPropertiesFile.exists() | ||
localPropertiesFile.withReader("UTF-8") { reader -> properties.load(reader) } | ||
|
||
plugins.each { name, path -> | ||
def pluginDirectory = flutterProjectRoot.resolve(path).resolve('android').toFile() | ||
include ":$name" | ||
project(":$name").projectDir = pluginDirectory | ||
} | ||
def flutterSdkPath = properties.getProperty("flutter.sdk") | ||
assert flutterSdkPath != null, "flutter.sdk not set in local.properties" | ||
apply from: "$flutterSdkPath/packages/flutter_tools/gradle/app_plugin_loader.gradle" |
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 was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/reactive_ble_mobile/android/gradle/wrapper/gradle-wrapper.properties
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
packages/reactive_ble_mobile/android/src/main/AndroidManifest.xml
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