-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: migrate flutter to android
- Loading branch information
Showing
425 changed files
with
21,273 additions
and
18,426 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 |
---|---|---|
|
@@ -30,40 +30,35 @@ jobs: | |
~/.cargo/git/db/ | ||
key: ${{ runner.os }}-cargo | ||
restore-keys: ${{ runner.os }}-cargo | ||
- uses: pnpm/action-setup@v3 | ||
with: | ||
version: 8 | ||
- uses: subosito/flutter-action@v2 | ||
with: | ||
flutter-version: "3.22.2" | ||
channel: "stable" | ||
- uses: oven-sh/setup-bun@v2 | ||
- uses: nttld/setup-ndk@v1 | ||
id: setup-ndk | ||
with: | ||
ndk-version: r25c | ||
ndk-version: r28-beta2 | ||
add-to-path: false | ||
local-cache: true | ||
- name: Set Up JDK | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'zulu' | ||
java-version: '17' | ||
cache: 'gradle' | ||
- name: Install scripts runtime | ||
run: pnpm install | ||
run: bun install | ||
- name: Install cargo-ndk | ||
run: | | ||
cargo install --locked cargo-ndk || true | ||
rustup target add aarch64-linux-android armv7-linux-androideabi x86_64-linux-android i686-linux-android | ||
- name: Install flutter dependencies | ||
run: flutter pub get | ||
- name: Install flutter rust bridge | ||
run: | | ||
cargo install --locked [email protected] || true | ||
cargo install --locked '[email protected]' || true | ||
- name: Generate codes | ||
run: pnpm run generate | ||
rustup target add aarch64-linux-android | ||
- name: Build JNI | ||
run: bun run build:jni | ||
- name: Run tests | ||
run: pnpm run test | ||
run: bun run test | ||
- name: Build APK | ||
if: ${{ startsWith(github.ref, 'refs/tags/v') }} || ${{ startsWith(github.ref, 'refs/tags/pre-v') }} | ||
run: | | ||
mkdir -p ~/.gradle | ||
echo "ANDROID_NDK=$ANDROID_NDK_HOME" >> ~/.gradle/gradle.properties | ||
pnpm run build:apk | ||
bun run build:apk | ||
env: | ||
ANDROID_NDK_HOME: ${{ steps.setup-ndk.outputs.ndk-path }} | ||
ANDROID_SIGN_JKS: ${{ secrets.ANDROID_SIGN_JKS }} | ||
|
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.
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,14 +1,15 @@ | ||
gradle-wrapper.jar | ||
/.gradle | ||
/captures/ | ||
/gradlew | ||
/gradlew.bat | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/app/src/main/jniLibs | ||
GeneratedPluginRegistrant.java | ||
|
||
# Remember to never publicly share your keystore. | ||
# See https://flutter.dev/docs/deployment/android#reference-the-keystore-from-the-app | ||
key.properties | ||
**/*.keystore | ||
**/*.jks | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
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,3 @@ | ||
/build | ||
/src/main/java/uniffi | ||
/src/main/jniLibs |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.