Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/1.20.0 #1655

Merged
merged 101 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from 100 commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
fa39545
Sync name change (#1637)
ThomasSession Aug 22, 2024
8deb21c
Feature/icons fix (#1638)
ThomasSession Aug 22, 2024
bfbe4a8
Merge pull request #1644 from oxen-io/release/1.19.2
ThomasSession Aug 25, 2024
1393335
Feature/debug menu (#1645)
ThomasSession Aug 26, 2024
d1c4283
Fix/emoji reactions crash (#1646)
ThomasSession Aug 27, 2024
67bcc93
Strings work
simophin Aug 20, 2024
786485d
Subtituted 'Session' into 'Quit Session' text on go-back modal
AL-Session Aug 30, 2024
c4f0854
Fixing the crashing Share feature
ThomasSession Aug 30, 2024
ad64958
Merge remote-tracking branch 'origin/dev' into release/1.20.0
Sep 5, 2024
ed3cd4b
Removing the non translatable tags
ThomasSession Aug 30, 2024
8b10527
Adding text color tertiary to the sheet's theme
ThomasSession Sep 2, 2024
b95fe8c
Fixing scrolling issues in emoji reactions
ThomasSession Sep 2, 2024
cef47df
Bumping version code (to cater for internal track build)
ThomasSession Sep 2, 2024
f241328
Fixing styling issue in unread scroll to bottom button
ThomasSession Sep 2, 2024
32acd6e
Fixing up styling of Prominent buttons and "view_user" to work better…
ThomasSession Sep 2, 2024
28d59f9
Fixing strings
ThomasSession Sep 2, 2024
ea24ff6
Strings fixes
ThomasSession Sep 3, 2024
97db1fe
Reworked preferences
ThomasSession Sep 3, 2024
2704bc7
Updated the fake message in appearance
ThomasSession Sep 3, 2024
4aa68c9
Adding the ability to copy in message details
ThomasSession Sep 3, 2024
4d47354
Showing 'copy account id' in menu in 1to1 too
ThomasSession Sep 3, 2024
ffbb7d8
Updating files tab in "All media"
ThomasSession Sep 3, 2024
2f4c605
Strings updates
ThomasSession Sep 4, 2024
81f56de
Latest strings and handling bold
ThomasSession Sep 4, 2024
86f89f8
Updated constants file
ThomasSession Sep 4, 2024
d7bd0bf
Can save media in message details page now
ThomasSession Sep 4, 2024
bc067b6
Adding padding so that context menu doesn't hit the bottom of the screen
ThomasSession Sep 4, 2024
3db8b46
Strings update
ThomasSession Sep 4, 2024
7f8e9fd
Reverted changes on DMs
ThomasSession Sep 4, 2024
14207c7
Better ripple for home FAB
ThomasSession Sep 5, 2024
2c3e73b
Added a control message when the current user accepts a message request
ThomasSession Sep 5, 2024
a7843af
Updated QR screen to show dialog when permission is permanently denied
ThomasSession Sep 5, 2024
fa90b74
Using the Compose version of our QR scanning
ThomasSession Sep 5, 2024
4fd3961
Comments for future changes in JoinCommunityFragment
ThomasSession Sep 5, 2024
139f4ba
New strings + new camera permission handling
ThomasSession Sep 5, 2024
5795998
Making sure we do not crash when making/receiving a call without the …
ThomasSession Sep 2, 2024
4860adc
Added a new control message type to handle missed calls due to permis…
ThomasSession Sep 2, 2024
f44d066
Changed the missed call control message logic
ThomasSession Sep 2, 2024
2174976
Do not change the text color on emioji picker
ThomasSession Sep 6, 2024
aef0adb
[SES-2695] Incorrect message request approval on home screen
Sep 6, 2024
c38efc2
WIP for new avatar selection
ThomasSession Sep 6, 2024
c633338
Merge branch 'feature/strings-updates' of https:/oxen-io/…
ThomasSession Sep 8, 2024
c0bf015
SES-2651 - New avatar picker
ThomasSession Sep 8, 2024
422b8b2
Fixing the remaining tasks
ThomasSession Sep 9, 2024
a6886f1
[SES-2694] Incorrect back press warning message (#1657)
simophin Sep 9, 2024
ae64189
Differentiating between voice notes and regular audio
ThomasSession Sep 9, 2024
4e2cef6
Fixing 'Leave group dialog' from inside the group settings
ThomasSession Sep 9, 2024
1761024
SES-2692 only save valid media in message details
ThomasSession Sep 9, 2024
87e3f93
SES-2675 - Standardisingdenied mic permission
ThomasSession Sep 9, 2024
85161ff
PR comment
ThomasSession Sep 9, 2024
83b08cc
Fixing Camera permissions
ThomasSession Sep 9, 2024
a6efb43
Merge pull request #1659 from oxen-io/feature/strings-updates
ThomasSession Sep 9, 2024
fe7d3ef
Cleaning up permissions
ThomasSession Sep 9, 2024
150208c
SES-2688 SES-2689
ThomasSession Sep 9, 2024
e6c224b
WRITE_EXTERNAL_STORAGE relates to sdk <= 28
ThomasSession Sep 9, 2024
c68dc4f
Fixing up the muting as you can't add more than the max int....
ThomasSession Sep 10, 2024
2ebd20c
Merge pull request #1660 from oxen-io/feature/strings-fixes
ThomasSession Sep 10, 2024
a2c4d6f
Fixing mute
ThomasSession Sep 10, 2024
3a565a1
SES-2655 standardise thread body
ThomasSession Sep 10, 2024
b452a17
Merge pull request #1661 from oxen-io/feature/ses-2655
ThomasSession Sep 10, 2024
0fd801a
SES-2702 - making sure we hook the permission results everywhere
ThomasSession Sep 11, 2024
93af215
SES-2696 - Fix disappearing message
SessionHero01 Sep 11, 2024
4cb9372
SES-2713 - band dialog strings
ThomasSession Sep 11, 2024
0218bf9
Merge branch 'release/1.20.0' of https:/oxen-io/session-a…
ThomasSession Sep 11, 2024
ad944e3
Avatar dialog shows a red "remove" button
ThomasSession Sep 11, 2024
d30ff25
SES-2715 Calls toggle and Mic permission
ThomasSession Sep 11, 2024
304679d
Strings update
ThomasSession Sep 12, 2024
b9f06c3
Deleting tests no longer needed
ThomasSession Sep 12, 2024
41386fc
Merge pull request #1664 from oxen-io/fix/strings-update
ThomasSession Sep 12, 2024
bdbc2c1
SES-348 Adding a char limit to the input field in conversations
ThomasSession Sep 13, 2024
74787f9
Making sure camera perm updates in QR and new string for rationale d…
ThomasSession Sep 13, 2024
cf92c45
Latest strings
ThomasSession Sep 13, 2024
f270572
SES-2722 & SES-2718
ThomasSession Sep 13, 2024
e80f463
Listening to changes in community write access
ThomasSession Sep 15, 2024
cc63fa3
Removing uneeded line in the "Report a bug" help category in settings
ThomasSession Sep 15, 2024
0d158b6
Cleaning up modals for platform consistency
ThomasSession Sep 15, 2024
915c617
More dialog platform consistency
ThomasSession Sep 15, 2024
1f6a1b1
Using groupId as the key instead of the server alone
ThomasSession Sep 15, 2024
7b7c053
Using the right button for recovery banner
ThomasSession Sep 15, 2024
c3cf2b8
Updated tests
ThomasSession Sep 15, 2024
d044f12
Merge pull request #1669 from oxen-io/feature/dynamic-community-rights
ThomasSession Sep 16, 2024
d0d7626
Moving the heavy lifting code in a coroutine to help with ANRs
ThomasSession Sep 16, 2024
f35f30a
Merge pull request #1671 from oxen-io/fix/attachment-anrs
ThomasSession Sep 16, 2024
d0537c1
Cleaning up thumbnail view bgs
ThomasSession Sep 16, 2024
01a702b
Using our updated qaTag instead of testTag
ThomasSession Sep 17, 2024
06095ce
[SES-2733] Preventing files from being selected in media overview
SessionHero01 Sep 17, 2024
c42ef84
Latest Strings
ThomasSession Sep 17, 2024
d60db11
Have to remove translations for now
ThomasSession Sep 18, 2024
922077e
Latest strings
ThomasSession Sep 19, 2024
be5b79d
New strings script removes non-required duplicate regional folders
ThomasSession Sep 19, 2024
ba3e25c
Update APT repo before installing jdk
SessionHero01 Sep 19, 2024
a32f8d2
Latest strings and RTL assets
ThomasSession Sep 20, 2024
a0d6fd8
Removed google translated time unit files and forced the system to pr…
AL-Session Sep 23, 2024
ed7ea0a
Merge pull request #1678 from oxen-io/feature/time-units-from-system
ThomasSession Sep 23, 2024
6f32978
Setting the appropriate color for RTL assets
ThomasSession Sep 23, 2024
da83df2
Fixing scroll when getting new messages
ThomasSession Sep 23, 2024
7e1a0ad
Fix crashes when removing spaces in mention texts
SessionHero01 Sep 24, 2024
439ec90
Merge pull request #1680 from oxen-io/fix-mention-crash
ThomasSession Sep 24, 2024
b52fb75
Latest translations
ThomasSession Sep 24, 2024
0447a16
Fixed import for Huawei builds
ThomasSession Sep 24, 2024
e4a8fc2
Updated strings codes to align with the playstore
ThomasSession Sep 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 6 additions & 2 deletions .drone.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ local ci_dep_mirror(want_mirror) = (if want_mirror then ' -DLOCAL_MIRROR=https:/
pull: 'always',
environment: { ANDROID_HOME: '/usr/lib/android-sdk' },
commands: [
'apt-get install -y ninja-build',
'apt-get update',
'apt-get install -y ninja-build openjdk-17-jdk',
'update-java-alternatives -s java-1.17.0-openjdk-amd64',
'./gradlew testPlayDebugUnitTestCoverageReport'
],
}
Expand Down Expand Up @@ -78,7 +80,9 @@ local ci_dep_mirror(want_mirror) = (if want_mirror then ' -DLOCAL_MIRROR=https:/
pull: 'always',
environment: { SSH_KEY: { from_secret: 'SSH_KEY' }, ANDROID_HOME: '/usr/lib/android-sdk' },
commands: [
'apt-get install -y ninja-build',
'apt-get update',
'apt-get install -y ninja-build openjdk-17-jdk',
'update-java-alternatives -s java-1.17.0-openjdk-amd64',
'./gradlew assemblePlayDebug',
'./scripts/drone-static-upload.sh'
],
Expand Down
19 changes: 11 additions & 8 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ configurations.forEach {
it.exclude module: "commons-logging"
}

def canonicalVersionCode = 380
def canonicalVersionName = "1.19.2"
def canonicalVersionCode = 382
def canonicalVersionName = "1.20.0"

def postFixSize = 10
def abiPostFix = ['armeabi-v7a' : 1,
Expand Down Expand Up @@ -88,7 +88,6 @@ android {
buildConfigField "String", "CONTENT_PROXY_HOST", "\"contentproxy.signal.org\""
buildConfigField "int", "CONTENT_PROXY_PORT", "443"
buildConfigField "String", "USER_AGENT", "\"OWA\""
buildConfigField "String[]", "LANGUAGES", "new String[]{\"" + autoResConfig().collect { s -> s.replace('-r', '_') }.join('", "') + '"}'
buildConfigField "int", "CANONICAL_VERSION_CODE", "$canonicalVersionCode"
resourceConfigurations += []

Expand Down Expand Up @@ -221,11 +220,13 @@ android {
}

dependencies {
implementation project(':content-descriptions')

implementation("com.google.dagger:hilt-android:$daggerHiltVersion")
ksp("com.google.dagger:hilt-compiler:$daggerHiltVersion")
ksp("androidx.hilt:hilt-compiler:$jetpackHiltVersion")
ksp("com.google.dagger:hilt-compiler:$daggerHiltVersion")
ksp("com.github.bumptech.glide:ksp:$glideVersion")

implementation("com.google.dagger:hilt-android:$daggerHiltVersion")
implementation "androidx.appcompat:appcompat:$appcompatVersion"
implementation 'androidx.recyclerview:recyclerview:1.2.1'
implementation "com.google.android.material:material:$materialVersion"
Expand All @@ -241,19 +242,23 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-process:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycleVersion"
implementation "androidx.lifecycle:lifecycle-extensions:2.2.0"
implementation "androidx.paging:paging-runtime-ktx:$pagingVersion"
implementation 'androidx.activity:activity-ktx:1.5.1'
implementation 'androidx.activity:activity-compose:1.5.1'
implementation 'androidx.fragment:fragment-ktx:1.5.3'
implementation "androidx.core:core-ktx:$coreVersion"
implementation "androidx.work:work-runtime-ktx:2.7.1"

playImplementation ("com.google.firebase:firebase-messaging:24.0.0") {
exclude group: 'com.google.firebase', module: 'firebase-core'
exclude group: 'com.google.firebase', module: 'firebase-analytics'
exclude group: 'com.google.firebase', module: 'firebase-measurement-connector'
}

if (project.hasProperty('huawei')) huaweiImplementation 'com.huawei.hms:push:6.7.0.300'

implementation 'androidx.media3:media3-exoplayer:1.4.0'
implementation 'androidx.media3:media3-ui:1.4.0'
implementation 'org.conscrypt:conscrypt-android:2.5.2'
Expand All @@ -267,7 +272,6 @@ dependencies {
implementation 'com.github.chrisbanes:PhotoView:2.1.3'
implementation "com.github.bumptech.glide:glide:$glideVersion"
implementation "com.github.bumptech.glide:compose:1.0.0-beta01"
ksp "com.github.bumptech.glide:ksp:$glideVersion"
implementation 'com.makeramen:roundedimageview:2.1.0'
implementation 'com.pnikosis:materialish-progress:1.5'
implementation 'org.greenrobot:eventbus:3.0.0'
Expand Down Expand Up @@ -305,7 +309,6 @@ dependencies {
implementation "nl.komponents.kovenant:kovenant:$kovenantVersion"
implementation "nl.komponents.kovenant:kovenant-android:$kovenantVersion"
implementation "com.jakewharton.rxbinding3:rxbinding:3.1.0"
implementation "com.github.tbruyelle:rxpermissions:0.10.2"
implementation "com.github.ybq:Android-SpinKit:1.4.0"
implementation "com.opencsv:opencsv:4.6"
testImplementation "junit:junit:$junitVersion"
Expand Down Expand Up @@ -361,7 +364,7 @@ dependencies {
debugImplementation "androidx.compose.ui:ui-test-manifest:$composeVersion"

implementation "com.google.accompanist:accompanist-themeadapter-appcompat:0.33.1-alpha"
implementation "com.google.accompanist:accompanist-permissions:0.33.1-alpha"
implementation "com.google.accompanist:accompanist-permissions:0.36.0"
implementation "com.google.accompanist:accompanist-drawablepainter:0.33.1-alpha"

implementation "androidx.camera:camera-camera2:1.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ package network.loki.messenger

import android.Manifest
import android.app.Instrumentation
import android.content.ClipboardManager
import android.content.Context
import android.view.View
import androidx.test.espresso.Espresso.onView
import androidx.test.espresso.Espresso.pressBack
Expand All @@ -16,15 +14,14 @@ import androidx.test.espresso.matcher.ViewMatchers.isDescendantOfA
import androidx.test.espresso.matcher.ViewMatchers.isDisplayed
import androidx.test.espresso.matcher.ViewMatchers.isRoot
import androidx.test.espresso.matcher.ViewMatchers.withId
import androidx.test.espresso.matcher.ViewMatchers.withSubstring
import androidx.test.espresso.matcher.ViewMatchers.withText
import androidx.test.ext.junit.rules.ActivityScenarioRule
import androidx.test.ext.junit.runners.AndroidJUnit4
import androidx.test.filters.LargeTest
import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.uiautomator.By
import androidx.test.uiautomator.UiDevice
import com.adevinta.android.barista.interaction.PermissionGranter
import com.bumptech.glide.Glide
import network.loki.messenger.util.InputBarButtonDrawableMatcher.Companion.inputButtonWithDrawable
import org.hamcrest.Matcher
import org.hamcrest.Matchers.allOf
Expand All @@ -36,11 +33,9 @@ import org.junit.Test
import org.junit.runner.RunWith
import org.session.libsession.messaging.sending_receiving.link_preview.LinkPreview
import org.session.libsession.utilities.TextSecurePreferences
import org.session.libsignal.utilities.guava.Optional
import org.thoughtcrime.securesms.conversation.v2.ConversationActivityV2
import org.thoughtcrime.securesms.conversation.v2.input_bar.InputBar
import org.thoughtcrime.securesms.home.HomeActivity
import com.bumptech.glide.Glide

/**
* Currently not used as part of our CI/Deployment processes !!!!
Expand All @@ -62,7 +57,6 @@ class HomeActivityTests {
@Before
fun setUp() {
InstrumentationRegistry.getInstrumentation().addMonitor(activityMonitor)

}

@After
Expand Down Expand Up @@ -96,10 +90,10 @@ class HomeActivityTests {
device.pressKeyCode(67)

// Continue with display name
objectFromDesc(R.string.continue_2).click()
objectFromDesc(R.string.theContinue).click()

// Continue with default push notification setting
objectFromDesc(R.string.continue_2).click()
objectFromDesc(R.string.theContinue).click()

// PN select
if (hasViewedSeed) {
Expand All @@ -110,7 +104,6 @@ class HomeActivityTests {
PermissionGranter.allowPermissionsIfNeeded(Manifest.permission.POST_NOTIFICATIONS)
}


/* private fun goToMyChat() {
onView(withId(R.id.newConversationButton)).perform(ViewActions.click())
onView(withId(R.id.createPrivateChatButton)).perform(ViewActions.click())
Expand All @@ -131,7 +124,7 @@ class HomeActivityTests {
@Test
fun testLaunches_dismiss_seedView() {
setupLoggedInState()
objectFromDesc(R.string.continue_2).click()
objectFromDesc(R.string.theContinue).click()
objectFromDesc(R.string.copy).click()
pressBack()
onView(withId(R.id.seedReminderView)).check(matches(not(isDisplayed())))
Expand Down Expand Up @@ -182,6 +175,7 @@ class HomeActivityTests {
onView(withText(dialogPromptText)).check(matches(isDisplayed()))
}*/


/**
* Perform action of waiting for a specific time.
*/
Expand All @@ -198,5 +192,4 @@ class HomeActivityTests {
}
}
}

}
28 changes: 12 additions & 16 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_SPECIAL_USE"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_MICROPHONE"/>
<uses-permission android:name="network.loki.messenger.ACCESS_SESSION_SECRETS" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> <!-- Only used on Android API 29 and lower -->
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_MEDIA_IMAGES"/>
<uses-permission android:name="android.permission.READ_MEDIA_VIDEO"/>
Expand Down Expand Up @@ -79,7 +79,7 @@
android:networkSecurityConfig="@xml/network_security_configuration"
android:supportsRtl="true"
android:theme="@style/Theme.Session.DayNight"
tools:replace="android:allowBackup">
tools:replace="android:allowBackup,android:label" >

<!-- Disable all analytics -->

Expand Down Expand Up @@ -130,12 +130,16 @@
<activity
android:name="org.thoughtcrime.securesms.messagerequests.MessageRequestsActivity"
android:exported="false"
android:label="@string/activity_message_requests_title"
android:label="@string/sessionMessageRequests"
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.preferences.SettingsActivity"
android:screenOrientation="portrait"
android:label="@string/activity_settings_title" />
android:label="@string/sessionSettings" />
<activity
android:name="org.thoughtcrime.securesms.debugmenu.DebugActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.Session.DayNight.NoActionBar" />
<activity
android:name="org.thoughtcrime.securesms.home.PathActivity"
android:screenOrientation="portrait" />
Expand All @@ -147,11 +151,11 @@
android:name="org.thoughtcrime.securesms.preferences.BlockedContactsActivity"
android:screenOrientation="portrait"
android:theme="@style/Theme.Session.DayNight.FlatActionBar"
android:label="@string/blocked_contacts_title"
android:label="@string/conversationsBlockedContacts"
/>
<activity
android:name="org.thoughtcrime.securesms.groups.EditClosedGroupActivity"
android:label="@string/activity_edit_closed_group_title"
android:label="@string/groupEdit"
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.recoverypassword.RecoveryPasswordActivity"
Expand All @@ -161,7 +165,7 @@
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.preferences.PrivacySettingsActivity"
android:label="@string/activity_privacy_settings_title"
android:label="@string/sessionPrivacy"
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.preferences.NotificationSettingsActivity"
Expand All @@ -171,7 +175,7 @@
android:screenOrientation="portrait" />
<activity
android:name="org.thoughtcrime.securesms.preferences.HelpSettingsActivity"
android:label="@string/activity_help_settings_title"
android:label="@string/sessionHelp"
android:screenOrientation="portrait" />
<activity android:name="org.thoughtcrime.securesms.preferences.appearance.AppearanceSettingsActivity"
android:screenOrientation="portrait"/>
Expand Down Expand Up @@ -264,18 +268,10 @@
<activity
android:name="org.thoughtcrime.securesms.MediaPreviewActivity"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
android:label="@string/AndroidManifest__media_preview"
android:screenOrientation="portrait"
android:theme="@style/Theme.Session.DayNight.NoActionBar"
android:launchMode="singleTask"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="org.thoughtcrime.securesms.MediaOverviewActivity"
android:configChanges="touchscreen|keyboard|keyboardHidden|orientation|screenLayout|screenSize"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@style/Theme.Session.DayNight.NoActionBar"
android:windowSoftInputMode="stateHidden" />
<activity
android:name="org.thoughtcrime.securesms.DummyActivity"
android:allowTaskReparenting="true"
Expand Down
Loading