Skip to content

Commit

Permalink
Merge pull request #112 from jpush/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
KenChoi1992 authored Nov 29, 2016
2 parents a68af2d + 94a2b9f commit 57df985
Show file tree
Hide file tree
Showing 93 changed files with 3,295 additions and 530 deletions.
108 changes: 57 additions & 51 deletions JChat/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="io.jchat.android"
android:versionCode="55"
android:versionName="1.3.3">
android:versionCode="56"
android:versionName="1.3.4">

<uses-sdk
android:minSdkVersion="9"
Expand All @@ -23,30 +23,39 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
<uses-permission android:name="android.permission.WRITE_SETTINGS" />
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES"/>
<uses-permission android:name="android.permission.KILL_BACKGROUND_PROCESSES" />

<!-- JMessage Demo required for record audio-->
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS"/>
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />

<!-- Optional for location -->
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS"/>
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE"/>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />

<application
android:name="io.jchat.android.application.JChatDemoApplication"
android:allowBackup="true"
android:configChanges="fontScale"
android:icon="@drawable/icon"
android:label="@string/app_name"
android:theme="@style/noTitle"
android:screenOrientation="portrait">
android:screenOrientation="portrait"
android:theme="@style/noTitle">

<meta-data android:name="AA_DB_NAME" android:value="jchat.db"/>
<meta-data
android:name="AA_MODELS"
android:value="io.jchat.android.database.UserEntry, io.jchat.android.database.FriendEntry,
io.jchat.android.database.FriendRecommendEntry" />
<meta-data
android:name="AA_DB_VERSION"
android:value="4"/>

<!-- Required Push SDK核心功能-->
<service
Expand Down Expand Up @@ -129,6 +138,12 @@

</service>

<service android:name="com.baidu.location.f" android:enabled="true"
android:process=":remote">
</service>
<meta-data android:name="com.baidu.lbsapi.API_KEY"
android:value="UAkQeBK84ioVGzYgA1rSWYfuD4xYtpmV"/>

<!-- Required. Enable it you can get statistics data with channel -->
<meta-data
android:name="JPUSH_CHANNEL"
Expand All @@ -140,16 +155,17 @@

<activity
android:name="io.jchat.android.activity.BaseActivity"
android:screenOrientation="portrait"/>
android:screenOrientation="portrait" />
<activity
android:name="io.jchat.android.activity.LoginActivity"
android:theme="@style/noTitle"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden"/>
android:theme="@style/noTitle"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity
android:name="io.jchat.android.activity.MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustPan|stateAlwaysHidden">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

Expand All @@ -159,62 +175,52 @@
<activity
android:name="io.jchat.android.activity.RegisterActivity"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="io.jchat.android.activity.MeInfoActivity" />
<activity android:name="io.jchat.android.activity.MeInfoActivity" />
<activity
android:name="io.jchat.android.chatting.ChatActivity"
android:windowSoftInputMode="adjustResize" />
<activity
android:name="io.jchat.android.activity.ReloginActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysHidden"/>
<activity
android:name="io.jchat.android.activity.ChatDetailActivity" />
android:windowSoftInputMode="adjustResize|stateAlwaysHidden" />
<activity android:name="io.jchat.android.activity.ChatDetailActivity" />
<activity
android:name="io.jchat.android.activity.GroupSettingActivity"
android:theme="@style/group_setting_dialog" />
<activity
android:name="io.jchat.android.activity.FriendInfoActivity" />
<activity
android:name="io.jchat.android.activity.CreateGroupActivity" />
<activity
android:name="io.jchat.android.activity.PickPictureTotalActivity" />
<activity
android:name="io.jchat.android.activity.PickPictureActivity" />
<activity
android:name="io.jchat.android.activity.BrowserViewPagerActivity" />
<activity
android:name="io.jchat.android.activity.SettingActivity" />
<activity
android:name="io.jchat.android.activity.NotificationSettingActivity" />
<activity
android:name="io.jchat.android.activity.DisturbSettingActivity" />
<activity android:name="io.jchat.android.activity.FriendInfoActivity" />
<activity android:name="io.jchat.android.activity.CreateGroupActivity" />
<activity android:name="io.jchat.android.activity.PickPictureTotalActivity" />
<activity android:name="io.jchat.android.activity.PickPictureActivity" />
<activity android:name="io.jchat.android.activity.BrowserViewPagerActivity" />
<activity android:name="io.jchat.android.activity.SettingActivity" />
<activity android:name="io.jchat.android.activity.NotificationSettingActivity" />
<activity android:name="io.jchat.android.activity.DisturbSettingActivity" />
<activity
android:name="io.jchat.android.activity.ResetPasswordActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible"/>
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
<activity
android:name="io.jchat.android.activity.FixProfileActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
<activity
android:name="io.jchat.android.activity.ResetNickNameActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible"/>
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
<activity
android:name="io.jchat.android.activity.SelectAreaActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible"/>
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
<activity
android:name="io.jchat.android.activity.EditSignatureActivity"
android:windowSoftInputMode="adjustResize|stateAlwaysVisible"/>
<activity
android:name="io.jchat.android.activity.EditNoteNameActivity" />
<activity
android:name="io.jchat.android.activity.AboutActivity" />
android:windowSoftInputMode="adjustResize|stateAlwaysVisible" />
<activity android:name="io.jchat.android.activity.EditNoteNameActivity" />
<activity android:name="io.jchat.android.activity.AboutActivity" />
<activity
android:name="io.jchat.android.activity.SelectFriendActivity"
android:windowSoftInputMode="adjustPan"/>
<activity
android:name="io.jchat.android.activity.MembersInChatActivity" />
<activity
android:name="io.jchat.android.activity.CropImageActivity" />

android:windowSoftInputMode="adjustPan" />
<activity android:name="io.jchat.android.activity.MembersInChatActivity" />
<activity android:name="io.jchat.android.activity.CropImageActivity" />
<activity android:name="io.jchat.android.activity.FriendRecommendActivity" />
<activity android:name="io.jchat.android.activity.SearchFriendActivity" />
<activity android:name="io.jchat.android.activity.SearchFriendDetailActivity" />
<activity android:name="io.jchat.android.activity.SendInvitationActivity" />
<activity android:name="io.jchat.android.activity.SendLocationActivity"/>
</application>

</manifest>
4 changes: 3 additions & 1 deletion JChat/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
buildToolsVersion "25.0.0"

defaultConfig {
applicationId "io.jchat.android"
Expand Down Expand Up @@ -74,6 +74,8 @@ android {

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.michaelpardo:activeandroid:3.1.0-SNAPSHOT'
compile files('libs/BaiduLBS_Android.jar')
}


Expand Down
Binary file added JChat/libs/BaiduLBS_Android.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JChat/libs/arm64-v8a/liblocSDK7.so
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added JChat/libs/armeabi-v7a/liblocSDK7.so
Binary file not shown.
Binary file added JChat/libs/armeabi/libBaiduMapSDK_base_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/armeabi/libBaiduMapSDK_map_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/armeabi/liblocSDK7.so
Binary file not shown.
Binary file added JChat/libs/x86/libBaiduMapSDK_base_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/x86/libBaiduMapSDK_map_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/x86/liblocSDK7.so
Binary file not shown.
Binary file added JChat/libs/x86_64/libBaiduMapSDK_base_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/x86_64/libBaiduMapSDK_map_v4_1_1.so
Binary file not shown.
Binary file added JChat/libs/x86_64/liblocSDK7.so
Binary file not shown.
Binary file added JChat/res/drawable-hdpi/custom_loc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JChat/res/drawable-hdpi/location.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JChat/res/drawable-hdpi/location_tips.9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added JChat/res/drawable-hdpi/oval.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions JChat/res/drawable/contact_divider.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<solid android:color="@color/me_split_line_color" />
</shape>
13 changes: 13 additions & 0 deletions JChat/res/drawable/default_input_without_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item>
<shape>
<solid android:color="#FFFFFF" />

<stroke android:width="0dp" android:color="#E5E5E5" />

</shape>
</item>

</selector>
17 changes: 17 additions & 0 deletions JChat/res/drawable/jmui_rounded_bg.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<item android:state_pressed="true">
<shape>
<solid android:color="@color/item_click_bg_color" />
<corners android:radius="5dp" />
</shape>
</item>
<item>
<shape>
<solid android:color="@color/white" />
<corners android:radius="5dp" />
</shape>
</item>

</selector>
6 changes: 1 addition & 5 deletions JChat/res/drawable/letter_hint_bg.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
<shape android:shape="rectangle"
xmlns:android="http://schemas.android.com/apk/res/android">

<gradient
android:startColor="@color/letter_hint_start_color"
android:endColor="@color/leter_hint_end_color"
android:angle="90">
</gradient>
<solid android:color="#858585"/>

<corners android:radius="10dp"/>

Expand Down
21 changes: 15 additions & 6 deletions JChat/res/drawable/search_btn_bg.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<selector xmlns:android="http://schemas.android.com/apk/res/android">

<gradient
android:angle="270"
android:endColor="#6AA8FD"
android:startColor="#9AC4FF" />
<item android:state_pressed="true">
<shape>
<solid android:color="@color/jmui_jpush_blue"/>
</shape>
</item>
<item>
<shape>
<gradient
android:angle="270"
android:endColor="#6AA8FD"
android:startColor="#9AC4FF" />
</shape>
</item>

</shape>
</selector>
1 change: 1 addition & 0 deletions JChat/res/layout/activity_all_members.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
android:id="@+id/right_btn"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:padding="10dp"
android:layout_alignParentRight="true"
android:background="@drawable/send_picture_btn_bg"
android:text="@string/add"
Expand Down
17 changes: 17 additions & 0 deletions JChat/res/layout/activity_friend_recommend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff">

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

<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/friend_recommend_list_view">

</ListView>

</LinearLayout>
51 changes: 51 additions & 0 deletions JChat/res/layout/activity_search_friend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff">

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

<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:visibility="visible">

<EditText
android:id="@+id/search_et"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_weight="10"
android:background="@drawable/jmui_chat_input_bg"
android:cursorVisible="true"
android:textCursorDrawable="@drawable/jmui_text_cursor_bg"
android:hint="@string/search"
android:padding="10dp"
android:textColor="#808080"
android:textSize="20sp" />

<ImageButton
android:id="@+id/search_btn"
android:layout_width="50dp"
android:layout_height="match_parent"
android:layout_gravity="center"
android:src="@drawable/search"
android:background="@drawable/search_btn_bg" />

</LinearLayout>

<View
android:layout_width="match_parent"
android:layout_height="1dp"
android:layout_alignParentBottom="true"
android:background="@color/me_split_line_color"/>

<ListView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/search_list_view">
</ListView>

</LinearLayout>
Loading

0 comments on commit 57df985

Please sign in to comment.