Skip to content

Commit

Permalink
feature: allow sending images (#291)
Browse files Browse the repository at this point in the history
* upgrade rn version, add react-native-image-picker package

* add attachment component

* change min sdk version 16 to 21

* replace onPress with onLongPress in message action

* add ios image permission

* add image upload logic

* add attachment preview component

* add attachment support for send message action

* add file helper

* Move reply box to a separate component

* fix send message button render logic

* add select image via camera

* some style fixes

* code cleanup

* release android/beta version 1.0.6

* maximum upload size limited to 5 MB

* release android/beta version 1.0.7
  • Loading branch information
muhsin-k committed Feb 17, 2021
1 parent 25c5745 commit fef0a92
Show file tree
Hide file tree
Showing 18 changed files with 871 additions and 654 deletions.
4 changes: 2 additions & 2 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ android {
applicationId "com.chatwoot.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 104
versionName "1.0.4"
versionCode 107
versionName "1.0.7"
multiDexEnabled true
}
splits {
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
buildscript {
ext {
buildToolsVersion = "29.0.2"
minSdkVersion = 16
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
}
Expand Down
8 changes: 4 additions & 4 deletions ios/Chatwoot.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -724,13 +724,13 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Chatwoot/Chatwoot.entitlements;
CURRENT_PROJECT_VERSION = 104;
CURRENT_PROJECT_VERSION = 107;
DEVELOPMENT_TEAM = 6C953F3RX2;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Chatwoot/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.4;
MARKETING_VERSION = 1.0.7;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand All @@ -751,12 +751,12 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Chatwoot/Chatwoot.entitlements;
CURRENT_PROJECT_VERSION = 104;
CURRENT_PROJECT_VERSION = 107;
DEVELOPMENT_TEAM = 6C953F3RX2;
INFOPLIST_FILE = Chatwoot/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
MARKETING_VERSION = 1.0.4;
MARKETING_VERSION = 1.0.7;
OTHER_LDFLAGS = (
"$(inherited)",
"-ObjC",
Expand Down
4 changes: 4 additions & 0 deletions ios/Chatwoot/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@
</dict>
</dict>
</dict>
<key>NSCameraUsageDescription</key>
<string>For taking a photo</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Access user location</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>For choosing a photo</string>
<key>UIAppFonts</key>
<array>
<string>Inter-Bold.otf</string>
Expand Down
Loading

0 comments on commit fef0a92

Please sign in to comment.