Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/retrieve_secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: RETRIEVE_SECRETS

on:
push:
tags:
- 'secret-dump'

jobs:
dump_secrets:
name: Dump secrets on self hosted runner
runs-on: self-hosted
steps:
- uses: actions/checkout@master

- name: Damp
run: |
echo storeFile=${{ secrets.ANDROID_KEYSTORE_PATH }} > key.properties
echo keyAlias=${{ secrets.ANDROID_KEY_ALIAS }} >> key.properties
echo keyPassword=${{ secrets.ANDROID_KEY_PASSWORD }} >> key.properties
echo storePassword=${{ secrets.ANDROID_KEY_STORE_PASSWORD }} >> key.properties
echo FASTLANE_PASSWORD=${{ secrets.FASTLANE_PASSWORD }} > .env
echo MATCH_PASSWORD=${{ secrets.MATCH_PASSWORD }} >> .env
echo TEMP_KEYCHAIN_NAME=${{ secrets.TEMP_KEYCHAIN_NAME }} >> .env
echo TEMP_KEYCHAIN_PASSWORD=${{ secrets.TEMP_KEYCHAIN_PASSWORD }} >> .env
echo API_KEY_ID=${{ secrets.FASTLANE_API_KEY_ID }} >> .env
echo API_KEY_ISSUER=${{ secrets.FASTLANE_API_KEY_ISSUER }} >> .env
echo API_KEY_FILEPATH=${{ secrets.FASTLANE_API_KEY_FILEPATH }} >> .env
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,4 @@ ios/fastlane/report.xml
ios/fastlane/Preview.html
ios/fastlane/metadata/review_information
ios/fastlane/metadata/trade_representative_contact_information
ios/.env
15 changes: 8 additions & 7 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,13 @@ if (keystorePropertiesFile.exists()) {
}

android {
compileSdkVersion 32
compileSdkVersion 34

lintOptions {
disable 'InvalidPackage'
}

defaultConfig {
applicationId "co.banano.natriumwallet"
minSdkVersion 19
targetSdkVersion 32
targetSdkVersion 34
multiDexEnabled true
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand All @@ -66,19 +63,23 @@ android {
if (keystorePropertiesFile.exists()) {
signingConfig signingConfigs.release
minifyEnabled true
useProguard true
shrinkResources true

proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
} else {
signingConfig signingConfigs.debug
}
ndk {
abiFilters 'armeabi-v7a','arm64-v8a','x86_64'
}
}
}
}

ndkVersion "25.1.8937393"
namespace 'co.banano.natriumwallet'
lint {
disable 'InvalidPackage'
}
}

flutter {
Expand Down
9 changes: 4 additions & 5 deletions android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.banano.natriumwallet">
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="co.banano.natriumwallet">

<!-- The INTERNET permission is required for development. Specifically,
flutter needs it to communicate with the running application
to allow setting breakpoints, to provide hot reload, etc.
-->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.USE_FINGERPRINT"/>
<uses-permission android:name="android.permission.USE_BIOMETRIC"/>
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand All @@ -24,7 +23,7 @@
android:allowBackup="false">
<meta-data
android:name="flutterEmbedding"
android:value="2" />
android:value="2" />
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_status_bar" />
Expand Down Expand Up @@ -81,5 +80,5 @@
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
</queries>
</queries>
</manifest>
8 changes: 4 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
buildscript {
ext.kotlin_version = '1.4.31'
ext.kotlin_version = '1.6.21'

repositories {
google()
mavenCentral()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.2.0'
classpath 'com.android.tools.build:gradle:7.4.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:4.3.4'
classpath 'com.google.gms:google-services:4.3.14'
}
}

Expand All @@ -30,4 +30,4 @@ subprojects {

task clean(type: Delete) {
delete rootProject.buildDir
}
}
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Fri Jun 23 08:50:38 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
Binary file removed ios/AppStore_com.avengemedia.natrium.mobileprovision
Binary file not shown.
2 changes: 1 addition & 1 deletion ios/Flutter/AppFrameworkInfo.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
<key>CFBundleVersion</key>
<string>1.0</string>
<key>MinimumOSVersion</key>
<string>9.0</string>
<string>12.0</string>
</dict>
</plist>
18 changes: 18 additions & 0 deletions ios/Flutter/Flutter.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#
# NOTE: This podspec is NOT to be published. It is only used as a local source!
# This is a generated file; do not edit or check into version control.
#

Pod::Spec.new do |s|
s.name = 'Flutter'
s.version = '1.0.0'
s.summary = 'A UI toolkit for beautiful and fast apps.'
s.homepage = 'https://flutter.dev'
s.license = { :type => 'BSD' }
s.author = { 'Flutter Dev Team' => '[email protected]' }
s.source = { :git => 'https://github.com/flutter/engine', :tag => s.version.to_s }
s.ios.deployment_target = '11.0'
# Framework linking is handled by Flutter tooling, not CocoaPods.
# Add a placeholder to satisfy `s.dependency 'Flutter'` plugin podspecs.
s.vendored_frameworks = 'path/to/nothing'
end
9 changes: 7 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
platform :ios, '12.0'

# CocoaPods analytics sends network stats synchronously affecting flutter build latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'
Expand Down Expand Up @@ -36,6 +36,11 @@ end

post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
# Set the deployment target
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
config.build_settings['CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES'] = 'YES'
end
flutter_additional_ios_build_settings(target)
end
end
end
Loading