Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/scripts/add-key.sh

This file was deleted.

6 changes: 3 additions & 3 deletions .github/scripts/export-options.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
<string>app-store</string>
<key>provisioningProfiles</key>
<dict>
<key>technology.breez.client</key>
<string>BREEZ-APP-STORE</string>
<key>com.clovrlabs.wallet</key>
<string>ClovrLabs Wallet</string>
</dict>
<key>signingCertificate</key>
<string>Apple Distribution</string>
<key>signingStyle</key>
<string>manual</string>
<key>teamID</key>
<string>F7R2LZH3W5</string>
<string>SET_TEAMID!!!!!!</string>
<key>uploadSymbols</key>
<true/>
</dict>
Expand Down
23 changes: 0 additions & 23 deletions .github/scripts/sign.sh

This file was deleted.

121 changes: 100 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,109 @@
name: Flutter for Android
# main.yml
name: CD

on:
push:
branches: [ feature/app_without_rc ]
pull_request:
branches: [ feature/app_without_rc ]
branches: [ master ]

jobs:
release-ios:
name: Build and release iOS app
runs-on: latest-stable
deploy_android:
name: Upload Android build to the Firebase
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2.8.0
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Java
uses: actions/setup-java@v1
with:
flutter-version: '3.3.8'
- uses: ruby/setup-ruby@v1
java-version: 12.x
- name: Setup Flutter
uses: subosito/flutter-action@v1
with:
ruby-version: '3.1.2'
- name: Install Fastlane
run: cd ios && bundle install && cd ..
- name: Install packages
flutter-version: '3.7.3'
- name: Install Flutter dependencies
run: flutter pub get
- name: Install pods
run: cd ios && pod install && cd ..
- name: Prebuild
run: flutter build ios --release --no-codesign
- name: Execute Fastlane command
run: cd ios && fastlane release type:github
- name: Google Service
env:
GCP_SERVICE_ACCOUNT_ANDROID: ${{ secrets.GCP_SERVICE_ACCOUNT_ANDROID }}
run: |
echo $GCP_SERVICE_ACCOUNT_ANDROID | base64 --decode > ./android/app/google-services.json
shell: bash
- name: Prepare key
env:
ANDROID_KEY_JKS: ${{ secrets.ANDROID_KEY_JKS }}
run: |
echo $ANDROID_KEY_JKS | base64 --decode > ./android/key.jks
shell: bash
- name: Prepare properties
env:
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }}
run: |
echo $KEY_PROPERTIES | base64 --decode > ./android/key.properties
shell: bash
- name: Build Android Release
run: flutter build apk --target-platform=android-arm64 --flavor=client --release
- name: upload artifact to Firebase App Distribution
uses: wzieba/Firebase-Distribution-Github-Action@v1
with:
appId: ${{secrets.FIREBASE_APP_ID_ANDROID}}
serviceCredentialsFileContent: ${{ secrets.CREDENTIAL_FILE_CONTENT }}
groups_file: tester,
file: build/app/outputs/flutter-apk/app-client-release.apk
env:
FIREBASE_APP_ID_ANDROID: '${{ secrets.FIREBASE_APP_ID_ANDROID }}'
CREDENTIAL_FILE_CONTENT: '${{ secrets.CREDENTIAL_FILE_CONTENT }}'
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
channel-id: ${{secrets.CHANNEL_ID}}
slack-message: "New Android build is ready. You can download on the Firebase"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

deploy_ios:
name: Upload iOS build to the TestFlight
runs-on: macOS-latest
steps:
- name: Checkout code from ref
uses: actions/checkout@v2
with:
ref: ${{ github.ref }}
- name: Google Service
env:
GCP_SERVICE_ACCOUNT: ${{ secrets.GCP_SERVICE_ACCOUNT }}
run: |
echo $GCP_SERVICE_ACCOUNT | base64 --decode > ./ios/Runner/GoogleService-Info.plist
shell: bash
- name: Run Flutter tasks
uses: subosito/flutter-action@v2
with:
flutter-version: '3.7.3'
- run: flutter clean
- run: flutter pub get
- run: flutter build ios --release --no-codesign
- name: Deploy iOS Beta to TestFlight via Fastlane
uses: maierj/fastlane-action@v1.4.0
with:
lane: closed_beta
subdirectory: ios
env:
ITC_TEAM_ID: '${{ secrets.ITC_TEAM_ID }}'
APPLICATON_ID: '${{ secrets.APPLICATON_ID }}'
BUNDLE_IDENTIFIER: '${{ secrets.BUNDLE_IDENTIFIER }}'
DEVELOPER_PORTAL_TEAM_ID: '${{ secrets.DEVELOPER_PORTAL_TEAM_ID }}'
FASTLANE_APPLE_ID: '${{ secrets.FASTLANE_APPLE_EMAIL_ID }}'
FASTLANE_APPLE_APPLICATION_SPECIFIC_PASSWORD: '${{ secrets.APP_SPECIFIC_PASSWORD }}'
MATCH_PASSWORD: '${{ secrets.MATCH_PASSWORD }}'
GIT_AUTHORIZATION: '${{ secrets.GIT_AUTHORIZATION }}'
PROVISIONING_PROFILE_SPECIFIER: '${{ secrets.PROVISIONING_PROFILE_SPECIFIER }}'
TEMP_KEYCHAIN_PASSWORD: '${{ secrets.TEMP_KEYCHAIN_PASSWORD }}'
TEMP_KEYCHAIN_USER: '${{ secrets.TEMP_KEYCHAIN_USER }}'
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1.23.0
with:
channel-id: ${{secrets.CHANNEL_ID}}
slack-message: "New iOS build is ready. You can download on the TestFlight"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# frozen_string_literal: true

source "https://rubygems.org"

# gem "rails"
gem 'fastlane'
Binary file added android/app/libs/breez.aar
Binary file not shown.
2 changes: 2 additions & 0 deletions android/fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
json_key_file("") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.clovrlabs.wallet") # e.g. com.krausefx.app
23 changes: 23 additions & 0 deletions android/fastlane/Fastfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
default_platform(:android)

platform :android do
desc "Deploy to closed beta track"
lane :upload_to_play_store do
begin
gradle(task: "clean")
gradle(
task: "bundle",
build_type: 'Release'
)
upload_to_play_store(
track: 'production',
aab: '../build/app/outputs/bundle/release/app-release.aab',
skip_upload_metadata: true,
skip_upload_images: true,
skip_upload_screenshots: true,
release_status: "draft",
version_code: flutter_version()["version_code"],
)
end
end
end
7 changes: 7 additions & 0 deletions android/fastlane/Pluginfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!

gem 'fastlane-plugin-firebase_app_distribution'
gem 'fastlane-plugin-load_json'
gem 'fastlane-plugin-increment_version_code'
1 change: 1 addition & 0 deletions android/fastlane/groups.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alex.karpenko@clovrlabs.com,
Binary file added ios/Bindings.framework/Bindings
Binary file not shown.
13 changes: 13 additions & 0 deletions ios/Bindings.framework/Headers/Bindings.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

// Objective-C API for talking to the following Go packages
//
// github.com/breez/breez/bindings
//
// File is generated by gomobile bind. Do not edit.
#ifndef __Bindings_FRAMEWORK_H__
#define __Bindings_FRAMEWORK_H__

#include "Bindings.objc.h"
#include "Universe.objc.h"

#endif
Loading