Skip to content

Commit

Permalink
Manage jitsi libs (#976)
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle authored Oct 4, 2023
1 parent 786e66d commit a2ee7f2
Show file tree
Hide file tree
Showing 7 changed files with 84 additions and 85 deletions.
1 change: 1 addition & 0 deletions changelog.d/976.improvements
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove Jitsi dependency
2 changes: 1 addition & 1 deletion library/attachment-viewer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ android {

// Tchap: Add tchap flavors
// The 'target' dimension permits to specify which platform are used
flavorDimensions "target"
flavorDimensions = ["target"]

productFlavors {
devTchap { dimension "target"}
Expand Down
2 changes: 1 addition & 1 deletion library/ui-styles/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ android {

// Tchap: Add tchap flavors
// The 'target' dimension permits to specify which platform are used
flavorDimensions "target"
flavorDimensions = ["target"]

productFlavors {
devTchap { dimension "target" }
Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "2.9.3"
version = "2.9.4"
directory = "changelog.d"
filename = "TCHAP_CHANGES.md"
name = "Changes in Tchap"
Expand Down
148 changes: 74 additions & 74 deletions vector-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ ext.versionMinor = 9
// Note: even values are reserved for regular release, odd values for hotfix release.
// When creating a hotfix, you should decrease the value, since the current value
// is the value for the next regular release.
ext.versionPatch = 3
ext.versionPatch = 4

static def getGitTimestamp() {
def cmd = 'git show -s --format=%ct'
Expand Down Expand Up @@ -329,7 +329,7 @@ android {
// The 'target' dimension permits to specify which platform are used
// The 'voip' flavor dimension permits to include/exclude jitsi at compilation time
// The 'pinning' flavor dimension permits to enable/disable certificate pinning with fingerprint check
flavorDimensions "store", "target", "crypto", "voip", "pinning"
flavorDimensions = ["store", "target", "crypto", "voip", "pinning"]

productFlavors {
gplay {
Expand Down Expand Up @@ -457,40 +457,40 @@ android {

// Tchap: Use custom configuration for Flipper library
configurations {
fdroidBtchapWithvoipWithoutpinningDebugImplementation
fdroidDevTchapWithvoipWithoutpinningDebugImplementation
fdroidTchapWithvoipWithoutpinningDebugImplementation
fdroidBtchapRustCryptoWithvoipWithoutpinningDebugImplementation
fdroidDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation
fdroidTchapRustCryptoWithvoipWithoutpinningDebugImplementation

gplayBtchapWithvoipWithoutpinningDebugImplementation
gplayDevTchapWithvoipWithoutpinningDebugImplementation
gplayTchapWithvoipWithoutpinningDebugImplementation
gplayBtchapRustCryptoWithvoipWithoutpinningDebugImplementation
gplayDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation
gplayTchapRustCryptoWithvoipWithoutpinningDebugImplementation


fdroidBtchapWithvoipWithpinningDebugImplementation
fdroidDevTchapWithvoipWithpinningDebugImplementation
fdroidTchapWithvoipWithpinningDebugImplementation
fdroidBtchapRustCryptoWithvoipWithpinningDebugImplementation
fdroidDevTchapRustCryptoWithvoipWithpinningDebugImplementation
fdroidTchapRustCryptoWithvoipWithpinningDebugImplementation

gplayBtchapWithvoipWithpinningDebugImplementation
gplayDevTchapWithvoipWithpinningDebugImplementation
gplayTchapWithvoipWithpinningDebugImplementation
gplayBtchapRustCryptoWithvoipWithpinningDebugImplementation
gplayDevTchapRustCryptoWithvoipWithpinningDebugImplementation
gplayTchapRustCryptoWithvoipWithpinningDebugImplementation


fdroidBtchapWithoutvoipWithpinningDebugImplementation
fdroidDevTchapWithoutvoipWithpinningDebugImplementation
fdroidTchapWithoutvoipWithpinningDebugImplementation
fdroidBtchapRustCryptoWithoutvoipWithpinningDebugImplementation
fdroidDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation
fdroidTchapRustCryptoWithoutvoipWithpinningDebugImplementation

gplayBtchapWithoutvoipWithpinningDebugImplementation
gplayDevTchapWithoutvoipWithpinningDebugImplementation
gplayTchapWithoutvoipWithpinningDebugImplementation
gplayBtchapRustCryptoWithoutvoipWithpinningDebugImplementation
gplayDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation
gplayTchapRustCryptoWithoutvoipWithpinningDebugImplementation


fdroidBtchapWithoutvoipWithoutpinningDebugImplementation
fdroidDevTchapWithoutvoipWithoutpinningDebugImplementation
fdroidTchapWithoutvoipWithoutpinningDebugImplementation
fdroidBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation
fdroidDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation
fdroidTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation

gplayBtchapWithoutvoipWithoutpinningDebugImplementation
gplayDevTchapWithoutvoipWithoutpinningDebugImplementation
gplayTchapWithoutvoipWithoutpinningDebugImplementation
gplayBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation
gplayDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation
gplayTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation
}

dependencies {
Expand Down Expand Up @@ -536,82 +536,82 @@ dependencies {

// Tchap: We had to exclude fbjni for withVoip, the library is already include in jitsi library
// Flipper, debug builds only
gplayBtchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

gplayTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

gplayDevTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }


fdroidBtchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

fdroidTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

fdroidDevTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapRustCryptoWithvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }


gplayBtchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayBtchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

gplayDevTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

gplayTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
gplayTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }


fdroidBtchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidBtchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

fdroidDevTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidDevTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

fdroidTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipper) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }
fdroidTchapRustCryptoWithvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin) { exclude group: 'com.facebook.fbjni', module: 'fbjni' }

gplayBtchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayBtchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

gplayTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

gplayDevTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayDevTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
gplayDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)


fdroidBtchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidBtchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidBtchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

fdroidTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

fdroidDevTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidDevTchapWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipper)
fdroidDevTchapRustCryptoWithoutvoipWithoutpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)


gplayBtchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayBtchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayBtchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayBtchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

gplayTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

gplayDevTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayDevTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
gplayDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
gplayDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

fdroidBtchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidBtchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidBtchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidBtchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

fdroidTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

fdroidDevTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidDevTchapWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)
fdroidDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipper)
fdroidDevTchapRustCryptoWithoutvoipWithpinningDebugImplementation(libs.flipper.flipperNetworkPlugin)

debugImplementation 'com.facebook.soloader:soloader:0.10.4'
debugImplementation "com.kgurgul.flipper:flipper-realm-android:2.2.0"
Expand Down
2 changes: 1 addition & 1 deletion vector-config/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {

// The 'target' dimension permits to specify which platform are used
// The 'voip' flavor dimension permits to include/exclude jitsi at compilation time
flavorDimensions "target", "voip"
flavorDimensions = ["target", "voip"]

productFlavors {
withvoip { dimension "voip" }
Expand Down
12 changes: 5 additions & 7 deletions vector/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ android {
// The 'target' dimension permits to specify which platform are used
// The 'voip' flavor dimension permits to include/exclude jitsi at compilation time
// The 'pinning' flavor dimension permits to enable/disable certificate pinning with fingerprint check
flavorDimensions "store", "target", "crypto", "voip", "pinning"
flavorDimensions = ["store", "target", "crypto", "voip", "pinning"]

productFlavors {
gplay {
Expand Down Expand Up @@ -271,12 +271,11 @@ dependencies {

implementation "androidx.emoji2:emoji2:1.3.0"

// Tchap: Manage jitsi lib
// WebRTC
// org.webrtc:google-webrtc is for development purposes only
// implementation 'org.webrtc:google-webrtc:1.0.+'
implementation('com.facebook.react:react-native-webrtc:111.0.0-jitsi-13672566@aar')
withoutvoipImplementation('org.jitsi:webrtc:111.0.1')
// Jitsi
api('org.jitsi.react:jitsi-meet-sdk:8.1.1') { // Tchap: always compile with jsitsi-meet else webrtc is unresolved.
withvoipApi('org.jitsi.react:jitsi-meet-sdk:8.1.1') {
exclude group: 'com.google.firebase'
exclude group: 'com.google.android.gms'
exclude group: 'com.android.installreferrer'
Expand All @@ -287,8 +286,7 @@ dependencies {
exclude group: 'com.android.support', module: 'appcompat-v7'
}

// Tchap
// Fix issue on okhttp3 import
// Tchap: Fix issue on okhttp3 import
api 'com.squareup.okhttp3:okhttp'

// QR-code
Expand Down

0 comments on commit a2ee7f2

Please sign in to comment.