Skip to content

Commit dd246e1

Browse files
Rename files and resources with applozic or al instance android sdk (#620)
* Removed App lozic and mobicom reference * Fixed build error
1 parent e9fc8c9 commit dd246e1

File tree

147 files changed

+540
-578
lines changed

Some content is hidden

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

147 files changed

+540
-578
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,19 @@
4242
android:label="@string/app_name"
4343
android:supportsRtl="true"
4444
android:networkSecurityConfig="@xml/network_security_config"
45-
android:theme="@style/ApplozicTheme"
45+
android:theme="@style/KommunicateTheme"
4646
tools:replace="android:allowBackup,android:fullBackupContent"
4747
tools:targetApi="n">
4848
<activity
4949
android:name="kommunicate.io.sample.MainActivity"
5050
android:launchMode="singleTask"
51-
android:theme="@style/ApplozicTheme" />
51+
android:theme="@style/KommunicateTheme" />
5252

5353
<activity
5454
android:name="kommunicate.io.sample.SplashScreenActivity"
5555
android:launchMode="singleTask"
5656
android:exported="true"
57-
android:theme="@style/ApplozicTheme">
57+
android:theme="@style/KommunicateTheme">
5858
<intent-filter>
5959
<action android:name="android.intent.action.MAIN" />
6060

app/src/main/res/layout-v17/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
android:layout_width="fill_parent"
6060
android:layout_height="wrap_content"
6161
android:layout_marginTop="24dp"
62-
android:background="@color/applozic_theme_color_primary"
62+
android:background="@color/core_theme_color_primary"
6363
android:gravity="center"
6464
android:padding="12dp"
6565
android:text="@string/login_or_sign_up_info"
@@ -70,7 +70,7 @@
7070
android:layout_width="fill_parent"
7171
android:layout_height="wrap_content"
7272
android:layout_marginTop="12dp"
73-
android:background="@color/applozic_theme_color_primary"
73+
android:background="@color/core_theme_color_primary"
7474
android:gravity="center"
7575
android:padding="12dp"
7676
android:text="@string/login_as_vistor"

app/src/main/res/layout/activity_main.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
android:layout_width="fill_parent"
6161
android:layout_height="wrap_content"
6262
android:layout_marginTop="24dp"
63-
android:background="@color/applozic_theme_color_primary"
63+
android:background="@color/core_theme_color_primary"
6464
android:gravity="center"
6565
android:padding="12dp"
6666
android:text="@string/login_or_sign_up_info"
@@ -71,7 +71,7 @@
7171
android:layout_width="fill_parent"
7272
android:layout_height="wrap_content"
7373
android:layout_marginTop="12dp"
74-
android:background="@color/applozic_theme_color_primary"
74+
android:background="@color/core_theme_color_primary"
7575
android:gravity="center"
7676
android:padding="12dp"
7777
android:text="@string/login_as_vistor"

kommunicate/src/main/java/io/kommunicate/async/KmConversationRemoveMemberTask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected Boolean doInBackground(Void... params) {
4545
return MobiComKitConstants.SUCCESS.equals(removeResponse);
4646
}
4747
} else {
48-
throw new Exception(AppContextService.getContext(context.get()).getString(R.string.applozic_userId_error_info_in_logs));
48+
throw new Exception(AppContextService.getContext(context.get()).getString(R.string.userId_error_info_in_logs));
4949
}
5050
} catch (Exception e) {
5151
e.printStackTrace();

kommunicate/src/main/java/io/kommunicate/usecase/RemoveMemberUseCase.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RemoveMemberUseCase(
3434
APIResult.failed("Empty response received")
3535
}
3636
} else {
37-
val errorMsg = context.getString(R.string.applozic_userId_error_info_in_logs)
37+
val errorMsg = context.getString(R.string.userId_error_info_in_logs)
3838
APIResult.failed(errorMsg)
3939
}
4040
} catch (e: Exception) {

kommunicate/src/main/res/values/strings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<resources>
22
<string name="app_name">Kommunicate</string>
33
<string name="unable_to_create_conversation">Unable to create conversation</string>
4-
<string name="applozic_userId_error_info_in_logs">UserId can not be null or empty and channel key should not be null</string>
4+
<string name="userId_error_info_in_logs">UserId can not be null or empty and channel key should not be null</string>
55
<!--Kommunicate conversation errors-->
66
<string name="km_method_needs_activity_context">This method needs Activity context</string>
77
<string name="km_chat_builder_cannot_be_null">Chat Builder cannot be null</string>

kommunicateui/src/main/AndroidManifest.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,15 @@
4848
android:label="@string/app_name"
4949
android:exported="false"
5050
android:launchMode="singleTask"
51-
android:theme="@style/ApplozicTheme"
51+
android:theme="@style/KommunicateTheme"
5252
tools:node="merge" />
5353

5454
<activity
5555
android:name="io.kommunicate.ui.conversation.activity.MobicomLocationActivity"
5656
android:configChanges="keyboardHidden|screenSize|smallestScreenSize|screenLayout|orientation"
5757
android:parentActivityName="io.kommunicate.ui.conversation.activity.ConversationActivity"
5858
android:exported="false"
59-
android:theme="@style/ApplozicTheme"
59+
android:theme="@style/KommunicateTheme"
6060
android:windowSoftInputMode="adjustResize" />
6161

6262
<activity
@@ -65,7 +65,7 @@
6565
android:label="Image"
6666
android:exported="false"
6767
android:parentActivityName="io.kommunicate.ui.conversation.activity.ConversationActivity"
68-
android:theme="@style/Applozic_FullScreen_Theme"
68+
android:theme="@style/KommunicateFullScreenTheme"
6969
tools:node="merge">
7070

7171
<!-- Parent activity meta-data to support API level 7+ -->
@@ -81,13 +81,13 @@
8181
android:launchMode="singleTop"
8282
android:exported="false"
8383
android:parentActivityName="io.kommunicate.ui.conversation.activity.ConversationActivity"
84-
android:theme="@style/ApplozicTheme"
84+
android:theme="@style/KommunicateTheme"
8585
tools:node="merge" />
8686

8787
<activity
8888
android:name="io.kommunicate.ui.kommunicate.activities.LeadCollectionActivity"
8989
android:configChanges="keyboardHidden|orientation|screenSize"
90-
android:theme="@style/ApplozicTheme"
90+
android:theme="@style/KommunicateTheme"
9191
tools:node="merge" />
9292

9393
<activity
@@ -96,7 +96,7 @@
9696
android:launchMode="singleTop"
9797
android:exported="false"
9898
android:parentActivityName="io.kommunicate.ui.conversation.activity.ConversationActivity"
99-
android:theme="@style/ApplozicTheme"
99+
android:theme="@style/KommunicateTheme"
100100
android:windowSoftInputMode="stateHidden|adjustResize">
101101
<meta-data
102102
android:name="android.support.PARENT_ACTIVITY"

kommunicateui/src/main/java/io/kommunicate/ui/KommunicateSetting.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ public KommunicateSetting setColor(String key, int color) {
123123
}
124124

125125
public int getColor(String key) {
126-
return sharedPreferences.getInt(key, R.color.applozic_theme_color_primary);
126+
return sharedPreferences.getInt(key, R.color.core_theme_color_primary);
127127
}
128128

129129
public int getSentMessageBackgroundColor() {
130-
return sharedPreferences.getInt(SENT_MESSAGE_BACKGROUND_COLOR, R.color.applozic_theme_color_primary);
130+
return sharedPreferences.getInt(SENT_MESSAGE_BACKGROUND_COLOR, R.color.core_theme_color_primary);
131131
}
132132

133133
public KommunicateSetting setSentMessageBackgroundColor(int color) {
@@ -145,7 +145,7 @@ public KommunicateSetting setReceivedMessageBackgroundColor(int color) {
145145
}
146146

147147
public int getSentMessageBorderColor() {
148-
return sharedPreferences.getInt(SENT_MESSAGE_BORDER_COLOR, R.color.applozic_theme_color_primary);
148+
return sharedPreferences.getInt(SENT_MESSAGE_BORDER_COLOR, R.color.core_theme_color_primary);
149149
}
150150

151151
public KommunicateSetting setSentMessageBorderColor(int color) {
@@ -163,7 +163,7 @@ public KommunicateSetting setReceivedMessageBorderColor(int color) {
163163
}
164164

165165
public int getAttachmentIconsBackgroundColor() {
166-
return sharedPreferences.getInt(ATTACHMENT_ICONS_BACKGROUND_COLOR, R.color.applozic_theme_color_primary);
166+
return sharedPreferences.getInt(ATTACHMENT_ICONS_BACKGROUND_COLOR, R.color.core_theme_color_primary);
167167
}
168168

169169
public KommunicateSetting setAttachmentIconsBackgroundColor(int color) {
@@ -262,7 +262,7 @@ public KommunicateSetting setSentMessageLinkTextColor(int color) {
262262
}
263263

264264
public int getReceivedMessageLinkTextColor() {
265-
return sharedPreferences.getInt(RECEIVED_MESSAGE_LINK_TEXT_COLOR, R.color.applozic_green_color);
265+
return sharedPreferences.getInt(RECEIVED_MESSAGE_LINK_TEXT_COLOR, R.color.core_green_color);
266266
}
267267

268268
public KommunicateSetting setReceivedMessageLinkTextColor(int color) {
@@ -350,7 +350,7 @@ public boolean isPriceOptionVisible() {
350350
}
351351

352352
public int getSendButtonBackgroundColor() {
353-
return sharedPreferences.getInt(SEND_BUTTON_BACKGROUND_COLOR, R.color.applozic_theme_color_primary);
353+
return sharedPreferences.getInt(SEND_BUTTON_BACKGROUND_COLOR, R.color.core_theme_color_primary);
354354
}
355355

356356
public KommunicateSetting setSendButtonBackgroundColor(int color) {
@@ -568,7 +568,7 @@ public KommunicateSetting setNoConversationLabelTextColor(int color) {
568568
}
569569

570570
public int getConversationDateTextColor() {
571-
return sharedPreferences.getInt(CONVERSATION_DATE_TEXT_COLOR, R.color.applozic_gray_color);
571+
return sharedPreferences.getInt(CONVERSATION_DATE_TEXT_COLOR, R.color.core_gray_color);
572572
}
573573

574574
public KommunicateSetting setConversationDateTextColor(int color) {
@@ -577,7 +577,7 @@ public KommunicateSetting setConversationDateTextColor(int color) {
577577
}
578578

579579
public int getConversationDayTextColor() {
580-
return sharedPreferences.getInt(CONVERSATION_DAY_TEXT_COLOR, R.color.applozic_gray_color);
580+
return sharedPreferences.getInt(CONVERSATION_DAY_TEXT_COLOR, R.color.core_gray_color);
581581
}
582582

583583
public KommunicateSetting setConversationDayTextColor(int color) {
@@ -595,7 +595,7 @@ public KommunicateSetting setMessageTimeTextColor(int color) {
595595
}
596596

597597
public int getChannelCustomMesssageTextColor() {
598-
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_TEXT_COLOR, R.color.applozic_lite_gray_color);
598+
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_TEXT_COLOR, R.color.core_lite_gray_color);
599599
}
600600

601601
public KommunicateSetting setChannelCustomMesssageTextColor(int color) {
@@ -604,7 +604,7 @@ public KommunicateSetting setChannelCustomMesssageTextColor(int color) {
604604
}
605605

606606
public int getChannelCustomMesssageBgColor() {
607-
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_BG_COLOR, R.color.applozic_custom_channel_message_text_color);
607+
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_BG_COLOR, R.color.core_custom_channel_message_text_color);
608608
}
609609

610610
public KommunicateSetting setChannelCustomMesssageBgColor(int color) {
@@ -613,7 +613,7 @@ public KommunicateSetting setChannelCustomMesssageBgColor(int color) {
613613
}
614614

615615
public int getChannelCustomMesssageBorderColor() {
616-
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_BORDER_COLOR, R.color.applozic_custom_channel_message_text_color);
616+
return sharedPreferences.getInt(CHANNEL_CUSTOM_MESSAGE_BORDER_COLOR, R.color.core_custom_channel_message_text_color);
617617
}
618618

619619
public KommunicateSetting setChannelCustomMesssageBorderColor(int color) {

kommunicateui/src/main/java/io/kommunicate/ui/async/KmChannelLeaveMember.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ protected Boolean doInBackground(Void... params) {
7171
return MobiComKitConstants.SUCCESS.equals(leaveResponse);
7272
}
7373
} else {
74-
throw new Exception(context.getString(R.string.applozic_userId_error_info_in_logs));
74+
throw new Exception(context.getString(R.string.userId_error_info_in_logs));
7575
}
7676
} catch (Exception e) {
7777
e.printStackTrace();

kommunicateui/src/main/java/io/kommunicate/ui/attachmentview/KmDocumentView.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -86,17 +86,17 @@ public KmDocumentView(Context context, KmStoragePermissionListener kmStoragePerm
8686
public void inflateViewWithMessage(View rootview, Message message) {
8787
this.message = message;
8888
mainLayout = (RelativeLayout) rootview.findViewById(R.id.attachment_doc_relative_layout);
89-
downloadInProgressLayout = (RelativeLayout) rootview.findViewById(R.id.applozic_doc_download_progress_rl);
90-
downloadedLayout = (RelativeLayout) rootview.findViewById(R.id.applozic_doc_downloaded);
89+
downloadInProgressLayout = (RelativeLayout) rootview.findViewById(R.id.doc_download_progress_rl);
90+
downloadedLayout = (RelativeLayout) rootview.findViewById(R.id.doc_downloaded);
9191
previewLayout = (RelativeLayout) rootview.findViewById(R.id.download_doc_relative_layout);
9292
retryLayout = (RelativeLayout) rootview.findViewById(R.id.retry_doc_relative_layout);
93-
progressBar = (ProgressBar) rootview.findViewById(R.id.applozic_doc_download_progress);
94-
sizeTextView = (TextView) rootview.findViewById(R.id.applozic_doc_file_size);
95-
fileText = (TextView) rootview.findViewById(R.id.applozic_doc_file_name);
96-
uploadDownloadImage = (ImageView) rootview.findViewById(R.id.applozic_download_image);
93+
progressBar = (ProgressBar) rootview.findViewById(R.id.doc_download_progress);
94+
sizeTextView = (TextView) rootview.findViewById(R.id.doc_file_size);
95+
fileText = (TextView) rootview.findViewById(R.id.doc_file_name);
96+
uploadDownloadImage = (ImageView) rootview.findViewById(R.id.core_download_image);
9797
docIcon = (ImageView) rootview.findViewById(R.id.doc_icon);
9898
ImageView cancelIcon = (ImageView) rootview.findViewById(R.id.download_calcle_icon);
99-
audioseekbar = (SeekBar) rootview.findViewById(R.id.applozic_audio_seekbar);
99+
audioseekbar = (SeekBar) rootview.findViewById(R.id.audio_seekbar);
100100
audio_duration_textView = (TextView) rootview.findViewById(R.id.audio_duration_textView);
101101

102102
if (!message.hasAttachment()) {
@@ -110,7 +110,7 @@ public void inflateViewWithMessage(View rootview, Message message) {
110110
audio_duration_textView.setTextColor(context.getResources().getColor(message.isTypeOutbox() ? R.color.white : R.color.black));
111111
}
112112
}
113-
progressBar.getIndeterminateDrawable().setColorFilter(message.isTypeOutbox() ? context.getResources().getColor(R.color.applozic_green_color) : context.getResources().getColor(R.color.black), android.graphics.PorterDuff.Mode.MULTIPLY);
113+
progressBar.getIndeterminateDrawable().setColorFilter(message.isTypeOutbox() ? context.getResources().getColor(R.color.core_green_color) : context.getResources().getColor(R.color.black), android.graphics.PorterDuff.Mode.MULTIPLY);
114114
cancelIcon.setColorFilter(message.isTypeOutbox() ? R.color.white : R.color.black, android.graphics.PorterDuff.Mode.MULTIPLY);
115115
if (message.getFileMetas() != null) {
116116
if (message.getFileMetas().getContentType().contains(AUDIO)) {

0 commit comments

Comments
 (0)