Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
fd2a0b6
DROID-2611 Widgets | Fix | Fix cover handling (#1376)
uburoiubu Jul 8, 2024
67fd3b6
DROID-2219 App | Tech | Update libs (#1378)
uburoiubu Jul 8, 2024
8f74c71
v0.32.1
uburoiubu Jul 8, 2024
22ffff4
DROID-2626 App | Tech | Fallback to Android Emoji when failed to get …
uburoiubu Jul 9, 2024
3f32880
DROID-2521 App | Tech | Release 6 stabilisation (#1379)
uburoiubu Jul 9, 2024
b829f07
DROID-2439 Sets | Fix | Bookmark prefill (#1381)
konstantiniiv Jul 9, 2024
b0c1b17
v0.32.2
uburoiubu Jul 9, 2024
eef683a
DROID-2517 Analytics | ScreenSearch event (#1382)
konstantiniiv Jul 9, 2024
c3e4835
DROID-2640 Data View | Fix | Fix view's relations logic (#1384)
konstantiniiv Jul 9, 2024
7ef51ac
DROID-2521 App | Tech | Release 6 Stabilisation (#1383)
uburoiubu Jul 9, 2024
244977e
v0.32.3
uburoiubu Jul 9, 2024
903543a
DROID-2621 Membership | Fix | Text status update (#1386)
konstantiniiv Jul 10, 2024
6962eb6
DROID-2660 Login | Tech | Seed phrase check (#1385)
konstantiniiv Jul 10, 2024
b5b09b1
DROID-2621 Membership | Users notice text (#1388)
konstantiniiv Jul 10, 2024
883bd5d
v0.32.4
uburoiubu Jul 10, 2024
27251a3
DROID-2661 Protocol | Integrate 0.35.0-rc6 (#1393)
konstantiniiv Jul 12, 2024
6a18215
DROID-2595 Membership | Fix | Active tier state (#1392)
konstantiniiv Jul 12, 2024
ef863bc
v0.32.5
konstantiniiv Jul 15, 2024
0ed753d
DROID-2611 Widgets | Fix | Gallery widget QA fixes (#1395)
uburoiubu Jul 15, 2024
c9649f8
v0.32.6
uburoiubu Jul 15, 2024
75e4124
DROID-2614 Notifications | Fix | Fix inconsistencies when receiving s…
uburoiubu Jul 15, 2024
6980cdc
v0.32.7
uburoiubu Jul 15, 2024
2cb208e
DROID-2671 Protocol | Enhancement | MW 0.35.0-rc7 (#1397)
uburoiubu Jul 15, 2024
169481b
v0.32.8
uburoiubu Jul 15, 2024
ba83ada
DROID-2614 Multiplayer | Fix | Should ellipsize long membername on sh…
uburoiubu Jul 16, 2024
11073c4
DROID-2666 Relations | Fix | Do not allow opening object type as obje…
uburoiubu Jul 16, 2024
b7188df
DROID-2614 Notifications | Fix | show only notifications with "Creat…
uburoiubu Jul 16, 2024
9d7b1bd
l10n | Enhancement (#1399)
any-association Jul 16, 2024
b510d91
v0.38.9
uburoiubu Jul 16, 2024
282f0b8
Droid 2614 Multiplayer | Fix | Having several join-space-request scre…
uburoiubu Jul 16, 2024
a3293b6
v0.32.10
uburoiubu Jul 16, 2024
3354319
DROID-2501 Relations | Date value problem with GMT -01:00 etc. (#1404)
konstantiniiv Jul 16, 2024
87f09f0
v0.32.11
uburoiubu Jul 17, 2024
48c812d
DROID-2534 Analytics | Object search screen (#1406)
konstantiniiv Jul 17, 2024
8ccaa79
DROID-2681 Widgets | Fix | Fix create-object button behavior in read…
uburoiubu Jul 17, 2024
7fc6634
DROID-2682 Widgets | Fix | Fix click handling in tabs and headers for…
uburoiubu Jul 17, 2024
04f9d6e
DROID-2677 Multiplayer | Share screen, dismiss with scroll (#1409)
konstantiniiv Jul 17, 2024
308d181
DROID-2670 Search | Fix | Related objects menu (#1410)
konstantiniiv Jul 17, 2024
a269381
DROID-2679 Editor | Fix | Unable to focus the editor when opening the…
uburoiubu Jul 17, 2024
5d10a53
v0.32.12
uburoiubu Jul 17, 2024
aa0675b
DROID-2679 Editor | Fix | Fix permission switch behavior (#1412)
uburoiubu Jul 17, 2024
bf76ad8
v0.32.13
uburoiubu Jul 17, 2024
9daa764
DROID-2659 App | Tech | Disable autobackup (#1415)
uburoiubu Jul 17, 2024
97dcee0
DROID-2550 Sharing | Fix | Removed sharing object wrapper text (#1417)
konstantiniiv Jul 18, 2024
4a6fcb8
DROID-2684 Protocol | Enhancement | MW 0.35.0-rc8 (#1419)
uburoiubu Jul 18, 2024
92969b9
DROID-2659 App | Tech | Change backup rules (#1418)
uburoiubu Jul 18, 2024
0576331
v0.32.14
uburoiubu Jul 18, 2024
aab03e6
DROID-2603 Widgets | Enhancement | Updated icons + added 'Add widget'…
uburoiubu Jul 22, 2024
7338006
v0.32.15
uburoiubu Jul 22, 2024
10ddd38
DROID-2672 Widget | Design | Update widget type descriptions (#1431)
uburoiubu Jul 24, 2024
2637716
l10n | Enhancement (#1405)
any-association Jul 17, 2024
d52c297
l10n | Enhancement (#1421)
any-association Jul 22, 2024
48f3fc6
l10n | Enhancement (#1429)
any-association Jul 23, 2024
0b59b7d
l10n | Enhancement (#1430)
any-association Jul 24, 2024
bd430e9
DROID-2611 Widgets | Fix | Fix gallery widget item title placement issue
uburoiubu Jul 24, 2024
4d410c3
v0.32.16
uburoiubu Jul 24, 2024
cd2cf26
Protocol | Enhancement | MW 0.35.0-rc9
uburoiubu Jul 25, 2024
37d6f0b
v0.32.17
uburoiubu Jul 25, 2024
ad09e2b
DROID-2539 Widgets | Tech | Do not use reorderable item unless in dra…
uburoiubu Jul 25, 2024
0026c02
l10n | Enhancement (#1432)
any-association Jul 24, 2024
f667250
v0.32.18
uburoiubu Jul 25, 2024
33b38a9
DROID-2706 Protocol | Integrate 0.35.0-rc11 MW (#1436)
konstantiniiv Jul 26, 2024
bff0a3e
v0.32.19
konstantiniiv Jul 26, 2024
0569912
DROID-2707 Icons | Title icon size (#1441)
konstantiniiv Jul 29, 2024
742bc6a
l10n | Enhancement (#1435)
any-association Jul 25, 2024
b034b14
l10n | Enhancement (#1439)
any-association Jul 29, 2024
49cd201
l10n | Enhancement (#1440)
any-association Jul 29, 2024
3d103de
v0.32.20
konstantiniiv Jul 29, 2024
459d84f
DROID-2711 Relations | Removing from object (#1450)
konstantiniiv Aug 1, 2024
8717aef
DROID-2708 Widgets | Fix | Clearing back stack correctly when switchi…
uburoiubu Aug 1, 2024
68987e3
l10n | Enhancement (#1442)
any-association Jul 29, 2024
d139027
l10n | Enhancement (#1443)
any-association Jul 30, 2024
f3fb2ce
l10n | Enhancement (#1445)
any-association Jul 30, 2024
96d3497
l10n | Enhancement (#1447)
any-association Jul 30, 2024
29c7517
l10n | Enhancement (#1448)
any-association Jul 31, 2024
f345182
l10n | Enhancement (#1449)
any-association Aug 1, 2024
fa0d186
v0.32.21
uburoiubu Aug 1, 2024
59355d5
DROID-2709 App | Tech | Introduce support for search with dependencie…
konstantiniiv Aug 2, 2024
86a30c6
DROID-2709 Tech | Glide, compose (#1454)
konstantiniiv Aug 3, 2024
966fd5d
DROID-2713 Protocol | Enhancement | MW 0.35.0-rc12
uburoiubu Aug 1, 2024
90a2108
DROID-2716 Protocol | Enhancement | MW 0.35.0
uburoiubu Aug 3, 2024
08180fd
v0.32.22
uburoiubu Aug 3, 2024
98d01aa
DROID-2611 Widgets | Fix | Icons (#1457)
konstantiniiv Aug 4, 2024
9f0f56c
v0.32.23
konstantiniiv Aug 4, 2024
a87f1d4
DROID-2521 Navigation | Fix | Fix issue with the last opened object n…
uburoiubu Aug 5, 2024
704f598
l10n | Enhancement | Enable be-rBY translation (#1456)
fuksman Aug 5, 2024
7fa1092
l10n | Enhancement (#1455)
any-association Aug 5, 2024
88dcfab
l10n | Enhancement | Enable be-BY translation (#1459)
fuksman Aug 5, 2024
b9a8f8d
v0.32.24
uburoiubu Aug 5, 2024
d3d046b
l10n | Enhancement | Enable be translation (#1460)
fuksman Aug 5, 2024
e46e9a2
l10n | Enhancement (#1461)
any-association Aug 5, 2024
626c1b4
v0.32.25
uburoiubu Aug 5, 2024
2d66fbf
DROID-2611 Widgets | Design | Design review fixes (#1463)
uburoiubu Aug 5, 2024
8d3635b
v0.32.26
uburoiubu Aug 5, 2024
84baf74
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
d1259d9
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
0e035a9
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
435e721
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
d9efc61
l10n | Enhancement (#1464)
any-association Aug 6, 2024
a7a3e4a
l10n | Enhancement (#1466)
any-association Aug 7, 2024
82bbda9
l10n | Enhancement (#1470)
any-association Aug 7, 2024
49d6ac6
v0.32.27
any-association Aug 8, 2024
84126e6
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
5dfc377
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
a427356
DROID-2686 App | Tech | Updated release script for uploading artefacts
uburoiubu Aug 12, 2024
91af288
v0.32.28
uburoiubu Aug 12, 2024
26ba0f8
DROID-2219 App | Tech| Release 6 stabilisation (#1478)
uburoiubu Aug 13, 2024
666af8c
v0.32.29
uburoiubu Aug 13, 2024
73ede95
DROID-2219 App | Tech | Release 6 stabilisation (#1480)
uburoiubu Aug 14, 2024
08e483e
v0.32.30
uburoiubu Aug 14, 2024
3c5f2f5
DROID-2749 Protocol | Integrate 0.35.3 (#1481)
konstantiniiv Aug 14, 2024
fdb57ab
DROID-2749 Protocol | Integrate 0.35.3 (#1481)
uburoiubu Aug 15, 2024
70d9031
v0.32.31
uburoiubu Aug 15, 2024
0b1895a
DROID-2751 App | Design | Change hex codes for dark grey and middle g…
uburoiubu Aug 19, 2024
3cdc825
DROID-2757 Relations | Can't open attachments as files (#1490)
konstantiniiv Aug 20, 2024
a135e79
DROID-2521 Widgets | Enhancement | Clear widget list before opening w…
uburoiubu Aug 21, 2024
3864c02
v0.32.32
uburoiubu Aug 21, 2024
969914d
DROID-2759 Protocol | Enhancement | MW 0.35.4
uburoiubu Aug 22, 2024
456455e
DROID-2521 Widgets | Enhancement | Increase performance on space-swit…
uburoiubu Aug 22, 2024
4f3565a
DROID-2758 Analytics | Fix | Fix onboarding analytics (#1500)
uburoiubu Aug 22, 2024
431e963
v0.32.33
uburoiubu Aug 22, 2024
ddfb258
DROID-2302 Multiplayer | Fix | Show leave space screen for editors (#…
konstantiniiv Aug 23, 2024
4ff7ed3
DROID-2219 Sentry | Release 6 (#1502)
konstantiniiv Aug 23, 2024
598d9e9
v0.32.34
konstantiniiv Aug 23, 2024
2cdf3c1
DROID-2521 Widgets | Enhancement | Optimizations + better loading sta…
uburoiubu Aug 27, 2024
277c3f8
DROID-2778 Auth | Enhancement | Disable auto-complete and auto-corre…
uburoiubu Aug 27, 2024
4d97f65
DROID-2781 Tech | Measure command execution time (#1508)
konstantiniiv Aug 27, 2024
9597628
v0.32.35
uburoiubu Aug 27, 2024
09c725c
DROID-2784 Protocol | Enhancement | MW 0.35.5 (#1519)
uburoiubu Aug 29, 2024
62b80a9
v0.32.36
uburoiubu Aug 29, 2024
8ba0a95
DROID-2791 Protocol | Integrate 0.35.6 (#1537)
konstantiniiv Sep 6, 2024
c6fa054
DROID-2785 Sync status | Need update status (#1525)
konstantiniiv Sep 6, 2024
b7e3ca6
DROID-2785 Sync status | Need update status, text (#1538)
konstantiniiv Sep 6, 2024
357603f
v 0.32.37
konstantiniiv Sep 6, 2024
e2320e7
DROID-2521 App | Fix | Fix crash relating to missing object type uniq…
uburoiubu Sep 9, 2024
edceb4e
DROID-2826 Editor | Fix | Cursor jumps back inside bullet list (#1564)
konstantiniiv Sep 18, 2024
b118452
DROID-2826 Editor | Tech | Remove legacy LiveData (#1569)
konstantiniiv Sep 18, 2024
197ab2f
DROID-2219 App | Tech | Release 6 stabilisation (#1570)
uburoiubu Sep 18, 2024
8a9bfc3
v 0.32.38
uburoiubu Sep 18, 2024
8c0d6d3
DROID-2840 Multiplayer | Fix | Fix click handling for readers in edit…
uburoiubu Sep 19, 2024
d32a8e2
DROID-2843 Multiplayer | Enhancement | Add loading state to space mem…
uburoiubu Sep 19, 2024
9d02290
v0.32.39
uburoiubu Sep 19, 2024
6c4e6c0
DROID-2865 Editor | Fix | Toggle block is not toggled for a member wi…
uburoiubu Sep 25, 2024
238636d
v0.32.40
uburoiubu Sep 25, 2024
ba44dc9
l10n | Enhancement | Enable Turkish translation (#1484)
fuksman Aug 16, 2024
dfc79b3
l10n | Enhancement (#1485)
any-association Aug 19, 2024
eda68b5
l10n | Enhancement (#1489)
any-association Aug 20, 2024
34ab125
l10n | Enhancement (#1526)
any-association Sep 2, 2024
3d5be50
V0.32.41
uburoiubu Sep 26, 2024
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
13 changes: 13 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r23c
link-to-sdk: true
- uses: actions/setup-java@v3
with:
distribution: "zulu"
Expand Down Expand Up @@ -57,6 +62,14 @@ jobs:
if: always()
run: ./scripts/release/clean-secrets.sh

# - name: Upload artifacts
# uses: actions/upload-artifact@master
# with:
# name: APK + BUNDLE
# path: |
# app/build/outputs/apk/release/
# app/build/outputs/bundle/release/

- name: Prepare artefacts
run: ./scripts/release/prepare-release-artefacts.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@ object EventsDictionary {
const val deletionWarningShow = "ShowDeletionWarning"
const val keychainPhraseScreenShow = "ScreenKeychain"
const val relationsScreenShow = "ScreenObjectRelation"
const val personalisationSettingsShow = "ScreenSettingsPersonal"
const val wallpaperScreenShow = "ScreenSettingsWallpaper"
const val accountDataSettingsShow = "ScreenSettingsAccount"
const val appearanceScreenShow = "ScreenSettingsAppearance"
const val screenSettingsStorage = "ScreenSettingsStorageIndex"
const val screenSettingsStorageManage = "ScreenSettingsStorageManager"
const val screenSettingsSpaceStorageManager = "ScreenSettingsSpaceStorageManager"
Expand Down Expand Up @@ -191,7 +188,6 @@ object EventsDictionary {
// Sharing spaces
const val shareSpace = "ShareSpace"
const val screenSettingsSpaceShare = "ScreenSettingsSpaceShare"
const val clickShareSpaceCopyLink = "ClickShareSpaceCopyLink"
const val screenStopShare = "ScreenStopShare"
const val stopSpaceShare = "StopSpaceShare"
const val clickSettingsSpaceShare = "ClickSettingsSpaceShare"
Expand All @@ -204,12 +200,13 @@ object EventsDictionary {
const val removeSpaceMember = "RemoveSpaceMember"
const val screenInviteRequest = "ScreenInviteRequest"
const val screenRequestSent = "ScreenRequestSent"
const val screenSettingsSpaceList = "ScreenSettingsSpaceList"
const val screenSettingsSpaceMembers = "ScreenSettingsSpaceMembers"
const val screenLeaveSpace = "ScreenLeaveSpace"
const val leaveSpace = "LeaveSpace"
const val approveLeaveRequest = "ApproveLeaveRequest"

const val searchBacklink = "SearchBacklink"

object SharingSpacesTypes {
const val shareTypeQR = "Qr"
const val shareTypeMoreInfo = "MoreInfo"
Expand Down Expand Up @@ -250,7 +247,8 @@ object EventsDictionary {
}

enum class ScreenOnboardingStep(val value: String) {
VOID("Void"),
VAULT("Vault"),
SOUL("Soul"),
PHRASE("Phrase")
}

Expand Down
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {
buildConfigField "boolean", "USE_NEW_WINDOW_INSET_API", "true"
buildConfigField "boolean", "USE_EDGE_TO_EDGE", "true"
buildConfigField "boolean", "LOG_FROM_MW_LIBRARY", localProperties.getProperty("LOG_FROM_MW_LIBRARY", "false")
buildConfigField "boolean", "LOG_MW_INTERACTION", localProperties.getProperty("LOG_MW_INTERACTION", "false")
buildConfigField "boolean", "LOG_MW_INTERACTION", localProperties.getProperty("LOG_MW_INTERACTION", "true")
buildConfigField "boolean", "LOG_DASHBOARD_REDUCER", localProperties.getProperty("LOG_DASHBOARD_REDUCER", "false")
buildConfigField "boolean", "LOG_EDITOR_VIEWMODEL_EVENTS", localProperties.getProperty("LOG_EDITOR_VIEWMODEL_EVENTS", "false")
buildConfigField "boolean", "LOG_EDITOR_CONTROL_PANEL", localProperties.getProperty("LOG_EDITOR_CONTROL_PANEL", "false")
Expand Down Expand Up @@ -180,6 +180,7 @@ dependencies {
implementation libs.constraintLayout
implementation libs.composeConstraintLayout
implementation libs.glide
implementation libs.glideCompose
implementation libs.coilCompose
implementation libs.dagger
implementation libs.timber
Expand Down
2 changes: 1 addition & 1 deletion app/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version.versionMajor=0
version.versionMinor=32
version.versionPatch=0
version.versionPatch=41
version.useDatedVersionName=false
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.anytypeio.anytype.core_models.Payload
import com.anytypeio.anytype.core_models.Relation
import com.anytypeio.anytype.core_models.primitives.SpaceId
import com.anytypeio.anytype.core_utils.tools.FeatureToggles
import com.anytypeio.anytype.domain.auth.interactor.ClearLastOpenedObject
import com.anytypeio.anytype.domain.base.AppCoroutineDispatchers
import com.anytypeio.anytype.domain.base.Either
import com.anytypeio.anytype.domain.base.Result
Expand Down Expand Up @@ -233,6 +234,9 @@ open class EditorTestSetup {
@Mock
lateinit var updateDivider: UpdateDivider

@Mock
lateinit var clearLastOpenedObject: ClearLastOpenedObject

@Mock
lateinit var uriMatcher: Clipboard.UriMatcher

Expand Down Expand Up @@ -508,7 +512,8 @@ open class EditorTestSetup {
space = SpaceId(defaultSpace)
),
permissions = permissions,
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate,
clearLastOpenedObject = clearLastOpenedObject
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import com.anytypeio.anytype.core_models.Relation
import com.anytypeio.anytype.core_models.SearchResult
import com.anytypeio.anytype.core_models.SubscriptionEvent
import com.anytypeio.anytype.core_models.primitives.SpaceId
import com.anytypeio.anytype.domain.auth.interactor.ClearLastOpenedObject
import com.anytypeio.anytype.domain.auth.repo.AuthRepository
import com.anytypeio.anytype.domain.base.AppCoroutineDispatchers
import com.anytypeio.anytype.domain.base.Result
Expand Down Expand Up @@ -182,6 +183,9 @@ abstract class TestObjectSetSetup {
@Mock
lateinit var analyticSpaceHelperDelegate: AnalyticSpaceHelperDelegate

@Mock
lateinit var clearLastOpenedObject: ClearLastOpenedObject

private lateinit var getTemplates: GetTemplates
private lateinit var getDefaultObjectType: GetDefaultObjectType

Expand Down Expand Up @@ -311,7 +315,8 @@ abstract class TestObjectSetSetup {
space = SpaceId(defaultSpace)
),
permissions = permissions,
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate,
clearLastOpenedObject = clearLastOpenedObject
)
}

Expand Down
4 changes: 2 additions & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
android:name="com.anytypeio.anytype.ui.main.MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<!-- DO NOT FORGET TO ADD android:screenOrientation="portrait" FOR RELEASE BUILDS! -->
android:windowSoftInputMode="adjustResize"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
13 changes: 4 additions & 9 deletions app/src/main/java/com/anytypeio/anytype/app/Notifications.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import android.app.PendingIntent
import android.content.Context
import android.content.Intent
import android.graphics.BitmapFactory
import android.os.Build
import androidx.core.app.NotificationCompat
import androidx.core.os.BundleCompat
import com.anytypeio.anytype.R
import com.anytypeio.anytype.core_models.Id
import com.anytypeio.anytype.core_models.Notification
Expand Down Expand Up @@ -122,7 +120,7 @@ class AnytypeNotificationService @Inject constructor(

val activity = PendingIntent.getActivity(
context,
0,
notification.hashCode(),
intent,
getDefaultFlags()
)
Expand Down Expand Up @@ -171,7 +169,7 @@ class AnytypeNotificationService @Inject constructor(

val activity = PendingIntent.getActivity(
context,
0,
notification.hashCode(),
intent,
getDefaultFlags()
)
Expand Down Expand Up @@ -204,7 +202,7 @@ class AnytypeNotificationService @Inject constructor(
}
val activity = PendingIntent.getActivity(
context,
0,
notification.hashCode(),
intent,
getDefaultFlags()
)
Expand Down Expand Up @@ -257,10 +255,7 @@ class AnytypeNotificationService @Inject constructor(
}

private fun getDefaultFlags(): Int {
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
PendingIntent.FLAG_IMMUTABLE
else
0
return PendingIntent.FLAG_UPDATE_CURRENT or PendingIntent.FLAG_IMMUTABLE
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1124,7 +1124,7 @@ class ComponentManager(
.build()
}

val spaceJoinRequestComponent = ComponentWithParams { params: SpaceJoinRequestViewModel.VmParams ->
val spaceJoinRequestComponent = ComponentMapWithParam { params: SpaceJoinRequestViewModel.VmParams ->
DaggerSpaceJoinRequestComponent
.builder()
.withDependencies(findComponentDependencies())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import com.anytypeio.anytype.di.feature.cover.UnsplashSubComponent
import com.anytypeio.anytype.di.feature.relations.RelationAddToObjectSubComponent
import com.anytypeio.anytype.di.feature.relations.RelationCreateFromScratchForObjectBlockSubComponent
import com.anytypeio.anytype.di.feature.relations.RelationCreateFromScratchForObjectSubComponent
import com.anytypeio.anytype.domain.auth.interactor.ClearLastOpenedObject
import com.anytypeio.anytype.domain.base.AppCoroutineDispatchers
import com.anytypeio.anytype.domain.block.UpdateDivider
import com.anytypeio.anytype.domain.block.interactor.ClearBlockContent
Expand Down Expand Up @@ -290,7 +291,8 @@ object EditorSessionModule {
storelessSubscriptionContainer: StorelessSubscriptionContainer,
dispatchers: AppCoroutineDispatchers,
getNetworkMode: GetNetworkMode,
analyticSpaceHelperDelegate: AnalyticSpaceHelperDelegate
analyticSpaceHelperDelegate: AnalyticSpaceHelperDelegate,
clearLastOpenedObject: ClearLastOpenedObject
): EditorViewModelFactory = EditorViewModelFactory(
params = params,
permissions = permissions,
Expand Down Expand Up @@ -335,7 +337,8 @@ object EditorSessionModule {
dispatchers = dispatchers,
storelessSubscriptionContainer = storelessSubscriptionContainer,
getNetworkMode = getNetworkMode,
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate,
clearLastOpenedObject = clearLastOpenedObject
)

@JvmStatic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import com.anytypeio.anytype.di.feature.relations.RelationCreateFromScratchForOb
import com.anytypeio.anytype.di.feature.sets.CreateFilterSubComponent
import com.anytypeio.anytype.di.feature.sets.ModifyFilterSubComponent
import com.anytypeio.anytype.di.feature.sets.SelectFilterRelationSubComponent
import com.anytypeio.anytype.domain.auth.interactor.ClearLastOpenedObject
import com.anytypeio.anytype.domain.base.AppCoroutineDispatchers
import com.anytypeio.anytype.domain.block.interactor.UpdateText
import com.anytypeio.anytype.domain.block.interactor.sets.GetObjectTypes
Expand Down Expand Up @@ -254,7 +255,8 @@ object ObjectSetModule {
getNetworkMode: GetNetworkMode,
dateProvider: DateProvider,
permissions: UserPermissionProvider,
analyticSpaceHelperDelegate: AnalyticSpaceHelperDelegate
analyticSpaceHelperDelegate: AnalyticSpaceHelperDelegate,
clearLastOpenedObject: ClearLastOpenedObject
): ObjectSetViewModelFactory = ObjectSetViewModelFactory(
params = params,
openObjectSet = openObjectSet,
Expand Down Expand Up @@ -297,7 +299,8 @@ object ObjectSetModule {
getNetworkMode = getNetworkMode,
dateProvider = dateProvider,
permissions = permissions,
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate
analyticSpaceHelperDelegate = analyticSpaceHelperDelegate,
clearLastOpenedObject = clearLastOpenedObject
)

@JvmStatic
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ import com.anytypeio.anytype.domain.library.StorelessSubscriptionContainer
import com.anytypeio.anytype.domain.misc.AppActionManager
import com.anytypeio.anytype.domain.misc.UrlBuilder
import com.anytypeio.anytype.domain.multiplayer.ActiveSpaceMemberSubscriptionContainer
import com.anytypeio.anytype.domain.multiplayer.SpaceViewSubscriptionContainer
import com.anytypeio.anytype.domain.multiplayer.UserPermissionProvider
import com.anytypeio.anytype.domain.`object`.GetObject
import com.anytypeio.anytype.domain.`object`.OpenObject
import com.anytypeio.anytype.domain.`object`.SetObjectDetails
import com.anytypeio.anytype.domain.objects.ObjectStore
import com.anytypeio.anytype.domain.objects.ObjectWatcher
import com.anytypeio.anytype.domain.objects.StoreOfObjectTypes
import com.anytypeio.anytype.domain.objects.StoreOfRelations
import com.anytypeio.anytype.domain.page.CloseBlock
import com.anytypeio.anytype.domain.page.CreateObject
import com.anytypeio.anytype.domain.search.SubscriptionEventChannel
Expand Down Expand Up @@ -287,4 +289,6 @@ interface HomeScreenDependencies : ComponentDependencies {
fun notificationChannel(): NotificationsChannel
fun activeSpaceMembers() : ActiveSpaceMemberSubscriptionContainer
fun analyticSpaceHelperDelegate(): AnalyticSpaceHelperDelegate
fun storeOfRelations(): StoreOfRelations
fun spaceViewSubscriptionContainer(): SpaceViewSubscriptionContainer
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.anytypeio.anytype.di.feature.search

import androidx.lifecycle.ViewModelProvider
import com.anytypeio.anytype.analytics.base.Analytics
import com.anytypeio.anytype.core_utils.di.scope.PerScreen
import com.anytypeio.anytype.di.common.ComponentDependencies
import com.anytypeio.anytype.domain.base.AppCoroutineDispatchers
Expand All @@ -9,6 +10,7 @@ import com.anytypeio.anytype.domain.misc.UrlBuilder
import com.anytypeio.anytype.domain.objects.StoreOfObjectTypes
import com.anytypeio.anytype.domain.objects.StoreOfRelations
import com.anytypeio.anytype.domain.workspace.SpaceManager
import com.anytypeio.anytype.presentation.analytics.AnalyticSpaceHelperDelegate
import com.anytypeio.anytype.presentation.search.GlobalSearchViewModel
import com.anytypeio.anytype.ui.search.GlobalSearchFragment
import dagger.Binds
Expand Down Expand Up @@ -48,4 +50,6 @@ interface GlobalSearchDependencies : ComponentDependencies {
fun storeOfObjectTypes(): StoreOfObjectTypes
fun storeOfRelations(): StoreOfRelations
fun spaceManager(): SpaceManager
fun analytics(): Analytics
fun analyticsHelper() : AnalyticSpaceHelperDelegate
}
14 changes: 12 additions & 2 deletions app/src/main/java/com/anytypeio/anytype/di/main/DataModule.kt
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import com.anytypeio.anytype.persistence.repo.DefaultUserSettingsCache
import dagger.Binds
import dagger.Module
import dagger.Provides
import java.security.GeneralSecurityException
import javax.inject.Named
import javax.inject.Singleton
import timber.log.Timber
Expand Down Expand Up @@ -168,16 +169,25 @@ object DataModule {
context: Context
): SharedPreferences = try {
initializeEncryptedPrefs(context)
} catch (e: GeneralSecurityException) {
// https://issuetracker.google.com/issues/164901843
Timber.e(e, "Security error while initializing encrypted prefs")
// Clearing pre-existing prefs
retryInstantiatingEncryptedPrefs(context)
} catch (e: Exception) {
// https://issuetracker.google.com/issues/164901843
Timber.e(e, "Error while initializing encrypted prefs")
Timber.e(e, "Unknown error while initializing encrypted prefs")
// Clearing pre-existing prefs
retryInstantiatingEncryptedPrefs(context)
}

private fun retryInstantiatingEncryptedPrefs(context: Context): SharedPreferences {
context
.getSharedPreferences(ENCRYPTED_PREFS_NAME, Context.MODE_PRIVATE)
.edit()
.clear()
.commit()
initializeEncryptedPrefs(context)
return initializeEncryptedPrefs(context)
}

private fun initializeEncryptedPrefs(context: Context) = EncryptedSharedPreferences.create(
Expand Down
Loading
Loading