-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🏗️ Prototype: Android + Cmake #4301
Conversation
27e803b
to
cd9ca64
Compare
cd9ca64
to
8c016f0
Compare
fe625dd
to
cb1598c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you remove qmake/platforms/android.pri
and add something like this:
https://github.com/mozilla-mobile/mozilla-vpn-client/blob/main/src/src.pro#L44
CMakeLists.txt
Outdated
# Otherwise the NDK Toolchain wont find qt | ||
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE NEVER) | ||
|
||
set(QT_HOST_PATH "~/Code/Qt/6.2.4/macos") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove this and use and env var?
@@ -7,5 +7,5 @@ object Config { | |||
const val buildToolsVersion = "30.0.3" | |||
const val minSdkVersion = 24 | |||
const val targetSdkVersion = 30 | |||
const val ndkVersion = "23.1.7779620" | |||
const val ndkVersion = "24.0.8215888" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to update the documentation in the README file or elsewhere?
@@ -0,0 +1,226 @@ | |||
import org.gradle.api.Plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headers
@@ -0,0 +1,43 @@ | |||
import org.gradle.api.Plugin |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
headers
Codecov ReportBase: 56.36% // Head: 16.40% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #4301 +/- ##
===========================================
- Coverage 56.36% 16.40% -39.97%
===========================================
Files 12 71 +59
Lines 605 3719 +3114
Branches 288 1789 +1501
===========================================
+ Hits 341 610 +269
- Misses 264 2794 +2530
- Partials 0 315 +315
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
79b6183
to
522ff0b
Compare
eb75013
to
b029cde
Compare
b029cde
to
967339e
Compare
val importScannerList = arrayOf( | ||
File("$host/libexec/qmlimportscanner"), | ||
File("$host/bin/qmlimportscanner"), | ||
File("$host/bin/qmlimportscanner.exe"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [ktlint] reported by reviewdog 🐶
Unnecessary trailing comma before ")"
File("$host/bin/qmlimportscanner"), | ||
File("$host/bin/qmlimportscanner.exe"), | ||
) | ||
val importScanner = importScannerList.firstOrNull{it.exists()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [ktlint] reported by reviewdog 🐶
Missing spacing around "{"
File("$host/bin/qmlimportscanner"), | ||
File("$host/bin/qmlimportscanner.exe"), | ||
) | ||
val importScanner = importScannerList.firstOrNull{it.exists()} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [ktlint] reported by reviewdog 🐶
Missing spacing before "}"
) | ||
val importScanner = importScannerList.firstOrNull{it.exists()} | ||
?: { | ||
error("Did not found qmlimportscanner in ${importScannerList}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚫 [ktlint] reported by reviewdog 🐶
Redundant curly braces
b3891eb
to
68309d2
Compare
Description
Switch build pipeline from:
We will build the client with cmake. Cmake will be invoked by gradle.
This allow's us to build the client with one command (theoreticly)
gradlew assemble
, and gives us the ability to define cmake/ndk versions as a classic gradle dependency.Handling can stay the same as the package.sh now will just set gradle up, instead of qmake :)