Skip to content

Commit 17d527d

Browse files
3.0.5-pluto.beta.1.1
1 parent 9ad9da1 commit 17d527d

File tree

7 files changed

+45
-20
lines changed

7 files changed

+45
-20
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 3.0.5-pluto.beta.1.1
2+
* Issue Fixes
3+
* cometchat 3.0.5 compatibility
4+
15
## 3.0.3-pluto.beta.1
26
* Better Readme.md.
37

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ post_install do |installer|
6565
<COPY FROM HERE------------>
6666
target.build_configurations.each do |build_configuration|
6767
build_configuration.build_settings['EXCLUDED_ARCHS[sdk=iphonesimulator*]'] = 'arm64 i386'
68+
build_configuration.build_settings['ENABLE_BITCODE'] = 'NO'
6869
end
6970
<COPY TILL HERE------------>
7071
end
@@ -73,7 +74,7 @@ end
7374

7475
</td></table>
7576

76-
**Step 3-** Open app/build.gradle file and change min SDk version to 21 <br/>
77+
**Step 3-** Open app/build.gradle file and change min SDk version to 21 and add lint ignore option<br/>
7778

7879
<table><td>
7980

@@ -86,6 +87,15 @@ end
8687
versionCode flutterVersionCode.toInteger()
8788
versionName flutterVersionName
8889
}
90+
91+
92+
93+
lintOptions {
94+
disable 'InvalidPackage'
95+
disable "Instantiatable"
96+
checkReleaseBuilds false
97+
abortOnError false
98+
}
8999
```
90100

91101

android/src/main/kotlin/com/cometchat/flutter_chat_ui_kit/LocationService.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ class LocationService : AppCompatActivity() {
119119
val longitude: Double = call.argument("longitude") ?: 0.0
120120

121121
val geocoder = Geocoder(context, Locale.getDefault())
122-
val addresses: List<Address?> = geocoder.getFromLocation(latitude, longitude, 1)
122+
val addresses: MutableList<Address>? = geocoder.getFromLocation(latitude, longitude, 1)
123123

124124

125-
if(addresses.isNotEmpty()){
125+
if(addresses!=null && addresses.isNotEmpty()){
126126
result.success(getAddressMap(addresses[0]))
127127
}else{
128128
result.error("NO DATA", "Address not found", "Address List came empty")

lib/src/groups/cometchat_create_group.dart

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -106,22 +106,30 @@ class _CometChatCreateGroupState extends State<CometChatCreateGroup>
106106
_isLoading = true;
107107
});
108108

109-
CometChat.createGroup(gUid, _groupName, _groupType,
109+
Group _group = Group(
110+
guid: gUid,
111+
name: _groupName,
112+
type: _groupType,
110113
password: _groupType == GroupTypeConstants.password
111114
? _groupPassword
112-
: null, onSuccess: (Group group) {
113-
debugPrint("Group Created Successfully : $group ");
114-
Navigator.pop(context); //pop loading indicator
115-
_isLoading = false;
116-
Navigator.pop(context);
117-
CometChatGroupEvents.onGroupCreate(group);
118-
}, onError: (CometChatException e) {
119-
Navigator.pop(context); //pop loading indicator
120-
_isLoading = false;
121-
setState(() {});
122-
CometChatGroupEvents.onGroupError(e);
123-
debugPrint("Group Creation failed with exception: ${e.message}");
124-
});
115+
: null);
116+
117+
CometChat.createGroup(
118+
group: _group,
119+
onSuccess: (Group group) {
120+
debugPrint("Group Created Successfully : $group ");
121+
Navigator.pop(context); //pop loading indicator
122+
_isLoading = false;
123+
Navigator.pop(context);
124+
CometChatGroupEvents.onGroupCreate(group);
125+
},
126+
onError: (CometChatException e) {
127+
Navigator.pop(context); //pop loading indicator
128+
_isLoading = false;
129+
setState(() {});
130+
CometChatGroupEvents.onGroupError(e);
131+
debugPrint("Group Creation failed with exception: ${e.message}");
132+
});
125133
}
126134
}
127135

lib/src/messages/message_bubbles/cometchat_text_bubble.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ class CometChatTextBubble extends StatelessWidget {
3131

3232
onTapUrl(String url) async {
3333
if (BubbleUtils.urlRegex.hasMatch(url)) {
34+
if (!RegExp(r'^(https?:\/\/)').hasMatch(url)) {
35+
url = 'https://' + url;
36+
}
3437
await launch(url);
3538
} else if (BubbleUtils.emailRegex.hasMatch(url)) {
3639
await launch('mailto:$url');

pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ packages:
5656
name: cometchat
5757
url: "https://pub.dartlang.org"
5858
source: hosted
59-
version: "3.0.3"
59+
version: "3.0.5"
6060
cross_file:
6161
dependency: transitive
6262
description:

pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_chat_ui_kit
22
description: CometChat Flutter UI Kit is a collection of custom UI Components designed to build text , chat features in your application.
33
The UI Kit is developed to keep developers in mind and aims to reduce development efforts significantly
4-
version: 3.0.3-pluto.beta.1
4+
version: 3.0.5-pluto.beta.1.1
55
homepage: https://www.cometchat.com/
66

77
environment:
@@ -11,7 +11,7 @@ environment:
1111
dependencies:
1212
flutter:
1313
sdk: flutter
14-
cometchat: ^3.0.3
14+
cometchat: ^3.0.5
1515
intl: ^0.17.0
1616
video_player: ^2.2.17
1717
flutter_localizations:

0 commit comments

Comments
 (0)