diff --git a/.idea/other.xml b/.idea/other.xml
new file mode 100644
index 0000000..4604c44
--- /dev/null
+++ b/.idea/other.xml
@@ -0,0 +1,252 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/build.gradle b/app/build.gradle
index 7886d4f..5e3a1de 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -12,7 +12,7 @@ android {
minSdk 24
targetSdk 33
versionCode 1
- versionName "1.0.1-rc6"
+ versionName "1.0.1-rc7"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
diff --git a/library/build.gradle b/library/build.gradle
index 811c1f9..aa92360 100644
--- a/library/build.gradle
+++ b/library/build.gradle
@@ -96,7 +96,7 @@ project.afterEvaluate {
aar(MavenPublication) {
groupId 'com.github.MakMoinee'
artifactId 'library'
- version '1.0.1-rc6'
+ version '1.0.1-rc7'
artifact bundleReleaseAar
}
diff --git a/library/src/main/java/com/github/MakMoinee/library/services/Utils.java b/library/src/main/java/com/github/MakMoinee/library/services/Utils.java
index 3fa98b7..52b5a30 100644
--- a/library/src/main/java/com/github/MakMoinee/library/services/Utils.java
+++ b/library/src/main/java/com/github/MakMoinee/library/services/Utils.java
@@ -5,6 +5,7 @@
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
+import com.github.MakMoinee.library.models.FirestoreRequestBody;
import com.google.firebase.messaging.FirebaseMessaging;
import com.google.firebase.messaging.RemoteMessage;
@@ -37,7 +38,7 @@ public static boolean isAlphaNumeric(String s) {
public static String getCurrentDate(String pattern) {
Date currentDateTime = new Date();
- if(pattern.isEmpty()){
+ if (pattern.isEmpty()) {
pattern = "yyyy-MM-dd hh:mm a";
}
@@ -51,12 +52,11 @@ public static String getCurrentDate(String pattern) {
}
/**
- *
* @param title
* @param body
* @param token
*/
- public static void sendMessage(String title, String body, String token){
+ public static void sendMessage(String title, String body, String token) {
// Obtain the FirebaseMessaging instance
FirebaseMessaging firebaseMessaging = FirebaseMessaging.getInstance();
@@ -72,4 +72,11 @@ public static void sendMessage(String title, String body, String token){
// Send the FCM message
firebaseMessaging.send(messageBuilder.build());
}
+
+ public static FirestoreRequestBody createBody(Map data) {
+ FirestoreRequestBody body = new FirestoreRequestBody.FirestoreRequestBodyBuilder()
+ .setParams(data)
+ .build();
+ return body;
+ }
}