[Android] Add and build olm module

Switch to famedly flutter images

Took 4 minutes
This commit is contained in:
Marcel 2020-02-19 17:23:03 +01:00
parent fff216c46c
commit 3bb22f1c59
5 changed files with 24 additions and 7 deletions

3
.gitignore vendored
View File

@ -43,4 +43,5 @@ lib/generated_plugin_registrant.dart
/key.jks
/android/key.properties
/android/key.properties
**/android/app/.cxx

View File

@ -1,5 +1,5 @@
image:
name: cirrusci/flutter
name: registry.gitlab.com/famedly/container/flutter-dockerimages:stable
stages:
- coverage
@ -19,16 +19,14 @@ test:
build_web:
stage: coverage
image: cirrusci/flutter:beta-web
image: registry.gitlab.com/famedly/container/flutter-dockerimages:beta
script:
- sudo apt update
- sudo apt install curl -y
- rm -r assets/js/package
- cd assets/js/ && curl -O 'https://janian.de/index.php/s/ZKpQi4xFkGWPMHQ/download' && cd ../../
- cd assets/js/ && mv download olm.tar.gz && cd ../../
- cd assets/js/ && tar xaf olm.tar.gz && cd ../../
- flutter channel beta
- flutter upgrade
- flutter doctor --verbose
- flutter config --enable-web
- flutter pub get
- flutter clean
- flutter build web --release --verbose

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "ios/olm"]
path = ios/olm
url = https://gitlab.matrix.org/matrix-org/olm.git

View File

@ -49,6 +49,11 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
arguments "-DOLM_TESTS=NO"
}
}
}
signingConfigs {
@ -73,6 +78,15 @@ android {
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
externalNativeBuild {
// Encapsulates your CMake build configurations.
cmake {
// Provides a relative path to your CMake build script.
path "../../ios/olm/CMakeLists.txt"
version "3.10.2"
}
}
}
flutter {

1
ios/olm Submodule

@ -0,0 +1 @@
Subproject commit 930c4677547ebb3058680a9c3ad88186bb2030da