Skip to content

Commit a1d200c

Browse files
committed
Merge branch 'release/1.9.0'
2 parents fb7faaa + 53c8e00 commit a1d200c

File tree

119 files changed

+4592
-2207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+4592
-2207
lines changed

Gemfile.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ GEM
33
specs:
44
CFPropertyList (3.0.5)
55
rexml
6-
activesupport (6.1.7.1)
6+
activesupport (6.1.7.3)
77
concurrent-ruby (~> 1.0, >= 1.0.2)
88
i18n (>= 1.6, < 2)
99
minitest (>= 5.1)
@@ -54,7 +54,7 @@ GEM
5454
netrc (~> 0.11)
5555
cocoapods-try (1.2.0)
5656
colored2 (3.1.2)
57-
concurrent-ruby (1.1.10)
57+
concurrent-ruby (1.2.2)
5858
escape (0.0.4)
5959
ethon (0.15.0)
6060
ffi (>= 1.15.0)
@@ -66,7 +66,7 @@ GEM
6666
i18n (1.12.0)
6767
concurrent-ruby (~> 1.0)
6868
json (2.6.2)
69-
minitest (5.17.0)
69+
minitest (5.18.0)
7070
molinillo (0.8.0)
7171
nanaimo (0.3.0)
7272
nap (1.1.0)
@@ -76,7 +76,7 @@ GEM
7676
ruby-macho (2.5.1)
7777
typhoeus (1.4.0)
7878
ethon (>= 0.9.0)
79-
tzinfo (2.0.5)
79+
tzinfo (2.0.6)
8080
concurrent-ruby (~> 1.0)
8181
xcodeproj (1.22.0)
8282
CFPropertyList (>= 2.3.3, < 4.0)
@@ -85,7 +85,7 @@ GEM
8585
colored2 (~> 3.1)
8686
nanaimo (~> 0.3.0)
8787
rexml (~> 3.2.4)
88-
zeitwerk (2.6.6)
88+
zeitwerk (2.6.7)
8989

9090
PLATFORMS
9191
ruby

android/app/build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
apply plugin: "com.android.application"
2+
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
23
apply plugin: 'com.google.gms.google-services'
34
import com.android.build.OutputFile
45
import org.apache.tools.ant.taskdefs.condition.Os
@@ -139,8 +140,8 @@ android {
139140
applicationId "com.chatwoot.app"
140141
minSdkVersion rootProject.ext.minSdkVersion
141142
targetSdkVersion rootProject.ext.targetSdkVersion
142-
versionCode 5117
143-
versionName "1.8.0"
143+
versionCode 5144
144+
versionName "1.9.0"
144145
buildConfigField "boolean", "IS_NEW_ARCHITECTURE_ENABLED", isNewArchitectureEnabled().toString()
145146

146147
multiDexEnabled true

android/app/src/main/assets/modules.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"metro-runtime": "0.72.3",
33
"@react-native/polyfills": "2.0.0",
4-
"react-native": "0.70.6",
4+
"react-native": "0.70.8",
55
"@babel/runtime": "7.20.6",
66
"invariant": "2.2.4",
77
"stacktrace-parser": "0.1.10",
@@ -16,7 +16,8 @@
1616
"memoize-one": "5.2.1",
1717
"nullthrows": "1.1.1",
1818
"use-sync-external-store": "1.2.0",
19-
"@sentry/react-native": "5.0.0-alpha.10",
19+
"@sentry/react-native": "5.3.0",
20+
"@sentry-internal/tracing": "7.45.0",
2021
"hoist-non-react-statics": "3.3.2",
2122
"tslib": "2.4.1",
2223
"localforage": "1.10.0",
@@ -63,11 +64,11 @@
6364
"lodash.filter": "4.6.0",
6465
"redux-persist": "6.0.0",
6566
"react-hook-form": "7.41.0",
66-
"react-native-gesture-handler": "1.10.3",
67-
"fbjs": "3.0.4",
68-
"@gorhom/bottom-sheet": "4.4.5",
67+
"react-native-gesture-handler": "2.9.0",
68+
"lodash": "4.17.21",
6969
"react-native-reanimated": "2.13.0",
7070
"lodash.isequal": "4.5.0",
71+
"@gorhom/bottom-sheet": "4.4.5",
7172
"moment": "2.29.4",
7273
"lodash.groupby": "4.6.0",
7374
"react-native-linear-gradient": "2.6.2",
@@ -122,6 +123,8 @@
122123
"regexp.prototype.flags": "1.4.3",
123124
"functions-have-names": "1.2.3",
124125
"diff": "5.0.0",
126+
"react-native-tab-view": "3.5.1",
127+
"react-native-pager-view": "6.1.4",
125128
"react-native-image-pan-zoom": "2.1.12",
126129
"warn-once": "0.1.1",
127130
"color": "4.2.3",

index.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ if (!__DEV__) {
1010
Sentry.init({
1111
dsn: Config.SENTRY_DSN,
1212
tracesSampleRate: 1.0,
13+
attachScreenshot: true,
1314
});
1415
}

ios/Chatwoot.xcodeproj/project.pbxproj

+20-4
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,10 @@
516516
"@executable_path/Frameworks",
517517
"@loader_path/Frameworks",
518518
);
519+
LIBRARY_SEARCH_PATHS = (
520+
"$(SDKROOT)/usr/lib/swift",
521+
"$(inherited)",
522+
);
519523
OTHER_LDFLAGS = (
520524
"-ObjC",
521525
"-lc++",
@@ -541,6 +545,10 @@
541545
"@executable_path/Frameworks",
542546
"@loader_path/Frameworks",
543547
);
548+
LIBRARY_SEARCH_PATHS = (
549+
"$(SDKROOT)/usr/lib/swift",
550+
"$(inherited)",
551+
);
544552
OTHER_LDFLAGS = (
545553
"-ObjC",
546554
"-lc++",
@@ -559,7 +567,7 @@
559567
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
560568
CLANG_ENABLE_MODULES = YES;
561569
CODE_SIGN_ENTITLEMENTS = Chatwoot/Chatwoot.entitlements;
562-
CURRENT_PROJECT_VERSION = 247;
570+
CURRENT_PROJECT_VERSION = 276;
563571
DEVELOPMENT_TEAM = L7YLMN4634;
564572
ENABLE_BITCODE = NO;
565573
INFOPLIST_FILE = Chatwoot/Info.plist;
@@ -568,7 +576,11 @@
568576
"$(inherited)",
569577
"@executable_path/Frameworks",
570578
);
571-
MARKETING_VERSION = 1.8.0;
579+
LIBRARY_SEARCH_PATHS = (
580+
"$(SDKROOT)/usr/lib/swift",
581+
"$(inherited)",
582+
);
583+
MARKETING_VERSION = 1.9.0;
572584
OTHER_LDFLAGS = (
573585
"$(inherited)",
574586
"-ObjC",
@@ -593,15 +605,19 @@
593605
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
594606
CLANG_ENABLE_MODULES = YES;
595607
CODE_SIGN_ENTITLEMENTS = Chatwoot/Chatwoot.entitlements;
596-
CURRENT_PROJECT_VERSION = 247;
608+
CURRENT_PROJECT_VERSION = 276;
597609
DEVELOPMENT_TEAM = L7YLMN4634;
598610
INFOPLIST_FILE = Chatwoot/Info.plist;
599611
INFOPLIST_KEY_CFBundleDisplayName = Chatwoot;
600612
LD_RUNPATH_SEARCH_PATHS = (
601613
"$(inherited)",
602614
"@executable_path/Frameworks",
603615
);
604-
MARKETING_VERSION = 1.8.0;
616+
LIBRARY_SEARCH_PATHS = (
617+
"$(SDKROOT)/usr/lib/swift",
618+
"$(inherited)",
619+
);
620+
MARKETING_VERSION = 1.9.0;
605621
OTHER_LDFLAGS = (
606622
"$(inherited)",
607623
"-ObjC",

ios/Podfile

+29-8
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,34 @@ target 'Chatwoot' do
3434
# Pods for testing
3535
end
3636

37-
post_install do |installer|
38-
react_native_post_install(
39-
installer,
40-
# Set `mac_catalyst_enabled` to `true` in order to apply patches
41-
# necessary for Mac Catalyst builds
42-
:mac_catalyst_enabled => false
43-
)
44-
__apply_Xcode_12_5_M1_post_install_workaround(installer)
37+
post_install do |installer|
38+
react_native_post_install(installer)
39+
40+
# Apple Silicon builds require a library path tweak for Swift library discovery or "symbol not found" for swift things
41+
installer.aggregate_targets.each do |aggregate_target|
42+
aggregate_target.user_project.native_targets.each do |target|
43+
target.build_configurations.each do |config|
44+
config.build_settings['LIBRARY_SEARCH_PATHS'] = ['$(SDKROOT)/usr/lib/swift', '$(inherited)']
45+
end
46+
end
47+
aggregate_target.user_project.save
48+
end
49+
50+
# Flipper requires a crude patch to bump up iOS deployment target, or "error: thread-local storage is not supported for the current target"
51+
# I'm not aware of any other way to fix this one other than bumping iOS deployment target to match react-native (iOS 11 now)
52+
53+
installer.pods_project.targets.each do |target|
54+
target.build_configurations.each do |config|
55+
config.build_settings['SWIFT_VERSION'] = '5.0'
56+
if config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] < '12.4'
57+
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
58+
end
59+
end
60+
end
61+
62+
# ...but if you bump iOS deployment target, Flipper barfs again "Time.h:52:17: error: typedef redefinition with different types"
63+
# We need to make one crude patch to RCT-Folly - set `__IPHONE_10_0` to our iOS target + 1
64+
# https://github.com/facebook/flipper/issues/834 - 84 comments and still going...
65+
`sed -i -e $'s/__IPHONE_10_0/__IPHONE_12_0/' #{installer.sandbox.root}/RCT-Folly/folly/portability/Time.h`
4566
end
4667
end

0 commit comments

Comments
 (0)