Commit 3a6ecf3c authored by Licaon_Kter's avatar Licaon_Kter 💬
Browse files

Linphone update

parent a81a1883
Pipeline #510531970 passed with stages
in 57 minutes and 46 seconds
......@@ -1070,9 +1070,62 @@ Builds:
antifeatures:
- UpstreamNonFree
- versionName: 4.6.4
versionCode: 40604
commit: 4.6.4
timeout: 20000
sudo:
- apt-get update || apt-get update
- apt-get install -y doxygen openjdk-11-jdk-headless pkgconf python3-pystache yasm
- apt-get install -y -t stretch-backports-sloppy libarchive13
- apt-get install -y -t stretch-backports cmake
- update-alternatives --auto java
gradle:
- yes
output: app/build/outputs/apk/release/linphone-android-release-*.apk
srclibs:
- linphone-sdk@5.1.20
rm:
- app/google-services.json
prebuild:
- pushd $$linphone-sdk$$
- git submodule update --init --recursive
- rm -R liblinphone/wrappers/java/classes/org/linphone/core/tools/firebase
- sed -i -e '/import com.google.firebase.FirebaseApp/d' -e '/FirebaseApp.initializeApp/d'
liblinphone/wrappers/java/classes/org/linphone/core/tools/PushNotificationUtils.java
- popd
- sed -i -e '/FirebaseMessaging/,+6d' app/src/main/AndroidManifest.xml
- sed -i -e '/com.google.firebase/d' $$linphone-sdk$$/cmake/Android/gradle/build.gradle.cmake
build.gradle app/build.gradle
- sed -i -e '/google-services/d' build.gradle
- sed -i -e '/keystore/d' -e '/repositories/,+17d' -e 's/${project.version}/$$VERSION$$/g'
-e '/com.google.gms.google-services/d' -e '/org.linphone:linphone-sdk-android/d'
-e "s/'\*.jar'/'linphone-sdk-android-release.aar'/" app/build.gradle
- sed -i -e '/FirebaseCrashlytics/d' app/src/main/java/org/linphone/core/CoreContext.kt
- sed -i -e 's|https://www.linphone.org/releases||' -e 's|push_notification=.*|push_notification=0|'
app/src/main/assets/linphonerc_default
- sed -i -e '/ndk.dir/d' local.properties
- sed -i -e '16,22d' settings.gradle
scanignore:
- settings.gradle
build:
- pushd $$linphone-sdk$$
- mkdir build-sdk
- cd build-sdk
- cmake .. -DENABLE_GPL_THIRD_PARTIES=YES -DLINPHONESDK_PLATFORM=Android -DLINPHONESDK_ANDROID_ARCHS="arm64,
armv7, x86" -DCMAKE_BUILD_TYPE=Release
- cmake --build . --parallel $(nproc)
- popd
- mkdir app/libs
- cp $$linphone-sdk$$/build-sdk/linphone-sdk/bin/outputs/aar/linphone-sdk-android-release.aar
app/libs/
ndk: r21e
antifeatures:
- UpstreamNonFree
MaintainerNotes: We patch linphone-sdk to remove GMS and Firebase, thus UpstreamNonFree.
AutoUpdateMode: None
UpdateCheckMode: None
CurrentVersion: 4.6.3
CurrentVersionCode: 40603
CurrentVersion: 4.6.4
CurrentVersionCode: 40604
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment