Skip to content

Commit

Permalink
Updated SDK to version 1.2
Browse files Browse the repository at this point in the history
Signed-off-by: Prasannan N <[email protected]>
  • Loading branch information
Prasannan N committed Nov 29, 2014
1 parent d976fd0 commit b8cccb6
Show file tree
Hide file tree
Showing 30 changed files with 160 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public void onCreate(Bundle savedInstance) {
MobihelpConfig config = new MobihelpConfig("https://yourfreshdeskdomain.freshdesk.com",
"your-app-id-here", "your-app-secret-here");
config.setFeedbackType(FeedbackType.NAME_AND_EMAIL_REQUIRED);
config.setAutoReplyEnabled(true);
Mobihelp.init(this, config);

// Add Custom data pertaining to your application
Expand Down
13 changes: 13 additions & 0 deletions MobihelpSDK/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.freshdesk.mobihelp"
android:versionCode="1"
Expand All @@ -10,6 +11,7 @@
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />

<application
android:label="@string/app_name" >
Expand Down Expand Up @@ -57,7 +59,18 @@
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.AttachmentHandlerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:parentActivityName="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:theme="@style/Theme.Mobihelp" >

<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>

<service android:name="com.freshdesk.mobihelp.service.MobihelpService" />

<receiver android:name="com.freshdesk.mobihelp.receiver.ConnectivityReceiver" >
Expand Down
6 changes: 6 additions & 0 deletions MobihelpSDK/README.TXT
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Documentation : http://developer.freshdesk.com/mobihelp
Support : http://support.freshdesk.com
Email : [email protected]

V1.2
__________________________
Added Auto Reply for new Conversations
Image Attachments can be added to conversations
Configuration can be done from SDK
Minor Fixes

V1.1.2
---------------------
Expand Down
Binary file modified MobihelpSDK/libs/mobihelp.jar
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 30 additions & 0 deletions MobihelpSDK/res/layout/mobihelp_activity_attachment_handler.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent" >

<ProgressBar
android:id="@+id/mobihelp_attachment_progressbar"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_marginTop="20dp"
android:indeterminate="true"
android:visibility="gone" />

<ImageView
android:id="@+id/mobihelp_attachment_image"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_above="@+id/mobihelp_conversation_divider" />

<View
android:id="@+id/mobihelp_conversation_divider"
android:layout_width="match_parent"
android:layout_height="2dp"
android:layout_above="@+id/mobihelp_conversation_reply_group"
android:background="@android:color/darker_gray" />

<include layout="@layout/mobihelp_partial_reply_frame" />

</RelativeLayout>
31 changes: 1 addition & 30 deletions MobihelpSDK/res/layout/mobihelp_activity_conversation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,35 +19,6 @@
android:layout_above="@+id/mobihelp_conversation_reply_group"
android:background="@android:color/darker_gray" />

<LinearLayout
android:id="@+id/mobihelp_conversation_reply_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:padding="4dp"
android:orientation="horizontal" >

<EditText
android:id="@+id/mobihelp_conversation_reply_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:singleLine="false"
android:maxLines="4"
android:hint="@string/mobihelp_hint_enter_text_here"
android:inputType="textMultiLine" />

<ImageView
android:id="@+id/mobihelp_conversation_send_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:minHeight="40dp"
android:minWidth="48dp"
android:scaleType="centerInside"
android:adjustViewBounds="true"
android:contentDescription="@string/mobihelp_content_description_send_message"
android:layout_gravity="center_vertical"
android:src="?attr/mh_ic_send" />
</LinearLayout>
<include layout="@layout/mobihelp_partial_reply_frame" />

</RelativeLayout>
39 changes: 29 additions & 10 deletions MobihelpSDK/res/layout/mobihelp_listitem_conversation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
android:id="@+id/mobihelp_conversion_listitem_wrapper"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="4dp" >
android:padding="2dp" >

<TextView
android:id="@+id/mobihelp_conversion_listitem_name"
Expand All @@ -15,22 +15,41 @@
android:textColor="@android:color/secondary_text_dark"
android:textSize="12sp" />

<TextView
android:id="@+id/mobihelp_conversion_listitem_message"
<LinearLayout
android:id="@+id/mobihelp_conversion_listitem_message_wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/mobihelp_conversion_listitem_name"
android:gravity="center_vertical"
android:minWidth="@dimen/mobihelp_conversion_listitem_min_width"
android:text="sample message" />
android:layout_below="@id/mobihelp_conversion_listitem_name"
android:orientation="vertical" >

<ImageView
android:id="@+id/mobihelp_conversation_listitem_attachment_image"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="top"
android:adjustViewBounds="true"
android:contentDescription="@string/mobihelp_content_description_attachment"
android:minHeight="80dp"
android:minWidth="80dp"
android:scaleType="fitStart"
android:visibility="gone" />

<TextView
android:id="@+id/mobihelp_conversion_listitem_message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:autoLink="web"
android:gravity="center_vertical"
android:padding="2dp" />
</LinearLayout>

<TextView
android:id="@+id/mobihelp_conversion_listitem_status_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/mobihelp_conversion_listitem_message"
android:layout_alignRight="@+id/mobihelp_conversion_listitem_message"
android:layout_below="@+id/mobihelp_conversion_listitem_message"
android:layout_alignLeft="@id/mobihelp_conversion_listitem_message_wrapper"
android:layout_alignRight="@id/mobihelp_conversion_listitem_message_wrapper"
android:layout_below="@id/mobihelp_conversion_listitem_message_wrapper"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:singleLine="true"
Expand Down
42 changes: 42 additions & 0 deletions MobihelpSDK/res/layout/mobihelp_partial_reply_frame.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/mobihelp_conversation_reply_group"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:orientation="horizontal"
android:padding="4dp" >

<ImageView
android:id="@+id/mobihelp_conversation_attach_image"
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:contentDescription="@string/mobihelp_content_description_action_attach_image"
android:scaleType="centerInside"
android:src="?attr/mh_ic_attach" />

<EditText
android:id="@+id/mobihelp_conversation_reply_text"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:hint="@string/mobihelp_hint_enter_text_here"
android:inputType="textMultiLine"
android:maxLines="4"
android:singleLine="false" />

<ImageView
android:id="@+id/mobihelp_conversation_send_image_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:adjustViewBounds="true"
android:contentDescription="@string/mobihelp_content_description_send_message"
android:minHeight="40dp"
android:minWidth="48dp"
android:scaleType="centerInside"
android:src="?attr/mh_ic_send" />

</LinearLayout>
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-da/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations" >Mine samtaler</string>
<string name="mobihelp_label_support_solutions_list_label" >Løsninger</string>
<string name="mobihelp_label_request_review" >Klik her for at bedømme appen i Play Store</string>
<string name="mobihelp_autoreply_message">Tak for din feedback. Vores support repræsentant vil komme i kontakt med dig snarest.</string>
<string name="mobihelp_default_anon_user_name" >Mobihelp-bruger</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<string name="mobihelp_label_my_conversations">Meine Konversationen</string>
<string name="mobihelp_label_support_solutions_list_label">Lösungen</string>
<string name="mobihelp_label_request_review">Hier klicken, um die App im Play Store zu bewerten</string>
<string name="mobihelp_autoreply_message">Vielen Dank für Ihre Rückmeldung. Unsere Support-Mitarbeiter werden in Kürze mit Ihnen zu bekommen.</string>
<string name="mobihelp_default_anon_user_name">Mobihelp-Benutzer</string>

<!-- UI Element hints -->
Expand Down
3 changes: 3 additions & 0 deletions MobihelpSDK/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<!-- Text for request review item in the conversation view of ticket (Conversation Activity) -->
<string name="mobihelp_label_request_review">Haz clic aquí para revisar la aplicación en Play Store</string>

<!-- Text for Autoreply message in conversations -->
<string name="mobihelp_autoreply_message">Gracias por sus comentarios. Nuestro representante de soporte se pondrá en contacto con usted en breve.</string>

<!-- Default name for anonymous users or users who did not provide a name when name is optional -->
<string name="mobihelp_default_anon_user_name">MobihelpUser</string>

Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Mes conversations</string>
<string name="mobihelp_label_support_solutions_list_label">Solutions</string>
<string name="mobihelp_label_request_review">"Cliquez ici pour donner votre avis sur l'application dans le Play Store"</string>
<string name="mobihelp_autoreply_message">"Merci pour vos commentaires. Notre représentant de l'assistance prendra contact avec vous sous peu."</string>
<string name="mobihelp_default_anon_user_name">Utilisateur Mobihelp</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Le mie conversazioni</string>
<string name="mobihelp_label_support_solutions_list_label">Soluzioni</string>
<string name="mobihelp_label_request_review">Fai clic qui per recensire l’app su PlayStore</string>
<string name="mobihelp_autoreply_message">Grazie per il suggerimento. Il nostro rappresentante del supporto si metterà in contatto con voi.</string>
<string name="mobihelp_default_anon_user_name">Utente Mobihelp</string>

<!-- UI Element hints -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Mine samtaler</string>
<string name="mobihelp_label_support_solutions_list_label">Løsninger</string>
<string name="mobihelp_label_request_review">Klikk her for å vurdere appen i Play Store</string>
<string name="mobihelp_autoreply_message">Takk for din tilbakemelding. Vår støtte representant vil ta kontakt med deg innen kort tid.</string>
<string name="mobihelp_default_anon_user_name">Mobihelp-bruker</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Mijn gesprekken</string>
<string name="mobihelp_label_support_solutions_list_label">Oplossingen</string>
<string name="mobihelp_label_request_review">Klik hier om de app in de PlayStore te beoordelen</string>
<string name="mobihelp_autoreply_message">Bedankt voor uw feedback. Onze steun vertegenwoordiger zal binnenkort contact met u op.</string>
<string name="mobihelp_default_anon_user_name">Mobihelp-gebruiker</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Moje rozmowy</string>
<string name="mobihelp_label_support_solutions_list_label">Rozwiązania</string>
<string name="mobihelp_label_request_review">Kliknij tutaj, aby zrecenzować aplikację w PlayStore</string>
<string name="mobihelp_autoreply_message">Dziękujemy za uwagi. Nasz przedstawiciel wsparcia skontaktuje się z Państwem wkrótce.</string>
<string name="mobihelp_default_anon_user_name">Użytkownik Mobihelp</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-pt/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Minhas conversas</string>
<string name="mobihelp_label_support_solutions_list_label">Soluções</string>
<string name="mobihelp_label_request_review">Clique aqui para classificar o aplicativo na PlayStore</string>
<string name="mobihelp_autoreply_message">Obrigado pelo seu feedback. Nosso representante de suporte entrará em contato com você em breve.</string>
<string name="mobihelp_default_anon_user_name">Usuário do Mobihelp</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Мои разговоры</string>
<string name="mobihelp_label_support_solutions_list_label">Решения</string>
<string name="mobihelp_label_request_review">Щелкните здесь для обзора приложения в PlayStore</string>
<string name="mobihelp_autoreply_message">Спасибо за ваш отзыв. Наш представитель поддержки свяжется с вами в ближайшее время.</string>
<string name="mobihelp_default_anon_user_name">Пользователь Mobihelp</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values-sv/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="mobihelp_label_my_conversations">Mina konversationer</string>
<string name="mobihelp_label_support_solutions_list_label">Lösningar</string>
<string name="mobihelp_label_request_review">Klicka här för att betygsätta appen i Play Store</string>
<string name="mobihelp_autoreply_message">Tack för din feedback. Vår support representant kommer att komma i kontakt med dig inom kort.</string>
<string name="mobihelp_default_anon_user_name">Mobihelp-användare</string>

<!-- UI Element hints -->
Expand Down
1 change: 1 addition & 0 deletions MobihelpSDK/res/values/attrs.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
<attr name="mh_ic_menu_contact_us" format="reference" />
<attr name="mh_ic_conversations" format="reference" />
<attr name="mh_ic_send" format="reference" />
<attr name="mh_ic_attach" format="reference" />

</resources>
25 changes: 21 additions & 4 deletions MobihelpSDK/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@

<!-- Title of Feedback Activity for feedback -->
<string name="mobihelp_activity_title_feedback_only">Feedback</string>

<!-- Default title for Solution Article incase solution doesnot have a valid title -->
<string name="mobihelp_activity_title_solution_article">Solution</string>

<!-- Text for "Contact Us" button in the Support Screen (Solution Article List Activity) -->
<!-- Title of Attachment Handler Activity -->
<string name="mobihelp_activity_title_attachment_handler">Attachment</string>

<!-- Default title for Solution Article incase solution doesnot have a valid title -->
<string name="mobihelp_activity_title_solution_article">Solution</string>

<!-- Text for "Contact Us" button in the Support Screen (Solution Article List Activity) -->
<string name="mobihelp_label_contact_us">Contact Us</string>

<!-- Text below the Contact Us button in the Support Screen (Solution Article List Activity) -->
Expand All @@ -32,6 +35,9 @@
<!-- Text for request review item in the conversation view of ticket (Conversation Activity) -->
<string name="mobihelp_label_request_review">Click here to review the app in PlayStore</string>

<!-- Text for Autoreply message in conversations -->
<string name="mobihelp_autoreply_message">Thank you for your feedback. Our support representative will get in touch with you shortly.</string>

<!-- Default name for anonymous users or users who did not provide a name when name is optional -->
<string name="mobihelp_default_anon_user_name">MobihelpUser</string>

Expand All @@ -51,6 +57,11 @@
<string name="mobihelp_error_email_not_valid">Please Enter a Valid E-Mail Address</string>
<string name="mobihelp_error_description_not_present">Please Enter a Problem Description</string>
<string name="mobihelp_error_genreic_retry_message">Please try again after sometime</string>
<string name="mobihelp_error_image_not_found">Image not found ! Could have been moved or deleted</string>
<string name="mobihelp_error_attachment_too_large">Attachment too large!</string>
<string name="mobihelp_error_invalid_image">Invalid Image!</string>
<string name="mobihelp_error_note_text_empty">Please enter text for reply</string>
<string name="mobihelp_error_support_section_disabled">Support section is currently unavailable!</string>

<!-- Menu Items -->

Expand All @@ -63,6 +74,12 @@
<!-- Title for "Submit" menu item in Feedback Screen (Feedback Activity) -->
<string name="mobihelp_menu_item_title_submit">Submit</string>

<!-- Text for attachment related items -->
<string name="mobihelp_dialog_select_picture_title">Select Picture</string>
<string name="mobihelp_content_description_action_attach_image">Attach Image</string>
<string name="mobihelp_content_description_attachment">Attachment Image</string>
<string name="mobihelp_attachment_default_message">Image attached</string>

<!-- Misc -->
<string name="mobihelp_content_description_send_message">Send</string>
<string name="mobihelp_content_description_device_screenshot">Device Screenshot</string>
Expand Down
Loading

0 comments on commit b8cccb6

Please sign in to comment.