Skip to content

Commit

Permalink
Show breaking changes modals on desktop and mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
islathehut committed Jan 20, 2025
1 parent 5668f86 commit 7983bae
Show file tree
Hide file tree
Showing 6 changed files with 134 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,16 @@ const BreakingChangesWarning = () => {

const title = 'Update available'
const message =
'Quiet’s next release makes joining communities faster and more reliable by letting people join when the owner is offline! 🎉 However, these changes are not backwards compatible, so you must re-install Quiet from tryquiet.org and re-create or re-join your community. 😥 This version of Quiet will no longer receive any updates or security fixes, so please re-install soon. We apologize for the inconvenience.'
'Quiet’s next release includes major updates to OrbitDB and IPFS! 🎉 However, these changes are not backwards compatible, so you must re-install Quiet from tryquiet.org and re-create or re-join your community. 😥 This version of Quiet will no longer receive any updates or security fixes, so please re-install soon. We apologize for the inconvenience.'

const updateAction = useCallback(() => {
shell.openExternal(`${Site.MAIN_PAGE}#Downloads`)
}, [])

useEffect(() => {
modal.handleOpen() // Open modal once per app start
}, [])

const updateButton = (
<Button
variant='contained'
Expand All @@ -35,7 +39,7 @@ const BreakingChangesWarning = () => {
}}
fullWidth
>
Install Quiet 2.x
Install Quiet 3.x
</Button>
)

Expand Down
105 changes: 105 additions & 0 deletions packages/mobile/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
GEM
remote: https://rubygems.org/
specs:
CFPropertyList (3.0.7)
base64
nkf
rexml
activesupport (6.1.7.8)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0)
algoliasearch (1.27.5)
httpclient (~> 2.8, >= 2.8.3)
json (>= 1.5.1)
atomos (0.1.3)
base64 (0.2.0)
claide (1.1.0)
cocoapods (1.15.2)
addressable (~> 2.8)
claide (>= 1.0.2, < 2.0)
cocoapods-core (= 1.15.2)
cocoapods-deintegrate (>= 1.0.3, < 2.0)
cocoapods-downloader (>= 2.1, < 3.0)
cocoapods-plugins (>= 1.0.0, < 2.0)
cocoapods-search (>= 1.0.0, < 2.0)
cocoapods-trunk (>= 1.6.0, < 2.0)
cocoapods-try (>= 1.1.0, < 2.0)
colored2 (~> 3.1)
escape (~> 0.0.4)
fourflusher (>= 2.3.0, < 3.0)
gh_inspector (~> 1.0)
molinillo (~> 0.8.0)
nap (~> 1.0)
ruby-macho (>= 2.3.0, < 3.0)
xcodeproj (>= 1.23.0, < 2.0)
cocoapods-core (1.15.2)
activesupport (>= 5.0, < 8)
addressable (~> 2.8)
algoliasearch (~> 1.0)
concurrent-ruby (~> 1.1)
fuzzy_match (~> 2.0.4)
nap (~> 1.0)
netrc (~> 0.11)
public_suffix (~> 4.0)
typhoeus (~> 1.0)
cocoapods-deintegrate (1.0.5)
cocoapods-downloader (2.1)
cocoapods-plugins (1.0.0)
nap
cocoapods-search (1.0.1)
cocoapods-trunk (1.6.0)
nap (>= 0.8, < 2.0)
netrc (~> 0.11)
cocoapods-try (1.2.0)
colored2 (3.1.2)
concurrent-ruby (1.3.4)
escape (0.0.4)
ethon (0.16.0)
ffi (>= 1.15.0)
ffi (1.17.0)
fourflusher (2.3.1)
fuzzy_match (2.0.4)
gh_inspector (1.1.3)
httpclient (2.8.3)
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.2)
minitest (5.25.1)
molinillo (0.8.0)
nanaimo (0.3.0)
nap (1.1.0)
netrc (0.11.0)
nkf (0.2.0)
public_suffix (4.0.7)
rexml (3.3.9)
ruby-macho (2.5.1)
typhoeus (1.4.1)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
xcodeproj (1.25.1)
CFPropertyList (>= 2.3.3, < 4.0)
atomos (~> 0.1.3)
claide (>= 1.0.2, < 2.0)
colored2 (~> 3.1)
nanaimo (~> 0.3.0)
rexml (>= 3.3.6, < 4.0)
zeitwerk (2.6.18)

PLATFORMS
ruby

DEPENDENCIES
activesupport (>= 6.1.7.3, < 7.1.0)
cocoapods (~> 1.13)

RUBY VERSION
ruby 2.6.10p210

BUNDLED WITH
1.17.2
2 changes: 1 addition & 1 deletion packages/mobile/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1398,4 +1398,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: eed49772dde039b0723324c813c83dd4c1af35f7

COCOAPODS: 1.13.0
COCOAPODS: 1.15.2
22 changes: 11 additions & 11 deletions packages/mobile/ios/Quiet/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@
<key>CFBundleVersion</key>
<string>393</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false />
<false/>
<key>LSRequiresIPhoneOS</key>
<true />
<true/>
<key>LSSupportsOpeningDocumentsInPlace</key>
<true />
<true/>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<false />
<false/>
<key>NSAllowsLocalNetworking</key>
<true />
<true/>
<key>NSExceptionDomains</key>
<dict>
<key>localhost</key>
<dict>
<key>NSExceptionAllowsInsecureHTTPLoads</key>
<true />
<true/>
</dict>
</dict>
</dict>
Expand All @@ -61,9 +61,9 @@
<key>NSDocumentsFolderUsageDescription</key>
<string>Quiet uses the document directory for storing files and images sent through the app.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string />
<string></string>
<key>NSPhotoLibraryLimitedAccessAPISupport</key>
<true />
<true/>
<key>NSPhotoLibraryUsageDescription</key>
<string>Quiet access photos for sending images through the app.</string>
<key>UIAppFonts</key>
Expand All @@ -84,9 +84,9 @@
<string>Rubik-SemiBoldItalic.ttf</string>
</array>
<key>UIBackgroundModes</key>
<array />
<array/>
<key>UIFileSharingEnabled</key>
<true />
<true/>
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIRequiredDeviceCapabilities</key>
Expand All @@ -100,6 +100,6 @@
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false />
<false/>
</dict>
</plist>
10 changes: 10 additions & 0 deletions packages/mobile/src/screens/ChannelList/ChannelList.screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ import { MenuName } from '../../const/MenuNames.enum'
export const ChannelListScreen: FC = () => {
const dispatch = useDispatch()

/*
* Notify user about incoming lack of backwards compatiblity.
* This should be removed in the next major release of the application (3.x)
*
* https://github.com/TryQuiet/quiet/issues/2672
*/
useEffect(() => {
dispatch(navigationActions.navigation({ screen: ScreenNames.NotifierScreen }))
}, [])

const usernameTaken = useSelector(identity.selectors.usernameTaken)
const duplicateCerts = useSelector(users.selectors.duplicateCerts)

Expand Down
2 changes: 1 addition & 1 deletion packages/mobile/src/screens/Notifier/Notifier.screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const NotifierScreen: FC = () => {
icon={appImages.update_graphics}
title={'Coming update will remove communities & messages'}
message={
'Quiet’s next release makes joining communities faster and more reliable by letting people join when the owner is offline! However, these changes required us to reset all communities, and both communities and messages will be lost on mobile. We apologize for the inconvenience, and please reach out immediately if you need help backing up messages.'
'Quiet’s next release includes major updates to OrbitDB and IPFS! 🎉 However, these changes are not backwards compatible, so you must re-install Quiet from tryquiet.org and re-create or re-join your community. 😥 This version of Quiet will no longer receive any updates or security fixes, so please re-install soon. We apologize for the inconvenience.'
}
/>
)
Expand Down

0 comments on commit 7983bae

Please sign in to comment.