Skip to content

Commit 43b643f

Browse files
author
Igor Khomenko
committed
reniew Cordova sample for text chat
1 parent 020445a commit 43b643f

File tree

155 files changed

+4764
-3185
lines changed

Some content is hidden

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

155 files changed

+4764
-3185
lines changed

samples/cordova/text_chat/README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
This is a code sample for [QuickBlox](https://quickblox.com/) platform. It is a great way for developers using QuickBlox platform to learn how to integrate private and group chat, add text and image attachments sending into your application.
66

7+
[Cordova Get Started](https://cordova.apache.org/#getstarted) guide.
8+
79
## Sample description
810

911
<img src="http://quickblox.com/developers//images/7/74/Cordova_chat_sample1.png" border="1" alt="1-1 ang Group chats" width="600">
@@ -21,4 +23,16 @@ It allows:
2123

2224
Original sample description & setup guide - [Apache Cordova (PhoneGap) Chat code sample](http://quickblox.com/developers/Sample-chat-cordova)
2325

24-
26+
## Steps to build this sample from scratch
27+
1. Create Cordova app:
28+
```
29+
cordova create hello com.example.hellochat HelloChat
30+
```
31+
2. Copy content from **samples/chat** to **www** folder of your Cordova app.
32+
3. Add platfroms:
33+
```
34+
cordova platform add ios --save &&
35+
cordova platform add android --save &&
36+
cordova platform add browser --save
37+
```
38+
4.

samples/cordova/text_chat/config.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@
2424
<allow-intent href="itms-apps:*" />
2525
<preference name="Orientation" value="landscape" />
2626
</platform>
27+
<engine name="ios" spec="~4.3.0" />
28+
<engine name="browser" spec="~4.1.0" />
2729
</widget>

samples/cordova/text_chat/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

samples/cordova/text_chat/platforms/android/AndroidManifest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.quickblox.cordova.chat" xmlns:android="http://schemas.android.com/apk/res/android">
33
<supports-screens android:anyDensity="true" android:largeScreens="true" android:normalScreens="true" android:resizeable="true" android:smallScreens="true" android:xlargeScreens="true" />
44
<uses-permission android:name="android.permission.INTERNET" />
5-
<application android:hardwareAccelerated="true" android:icon="@drawable/icon" android:label="@string/app_name" android:supportsRtl="true">
5+
<application android:hardwareAccelerated="true" android:icon="@mipmap/icon" android:label="@string/app_name" android:supportsRtl="true">
66
<activity android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale" android:label="@string/activity_name" android:launchMode="singleTop" android:name="MainActivity" android:theme="@android:style/Theme.DeviceDefault.NoActionBar" android:windowSoftInputMode="adjustResize">
77
<intent-filter android:label="@string/launcher_name">
88
<action android:name="android.intent.action.MAIN" />
99
<category android:name="android.intent.category.LAUNCHER" />
1010
</intent-filter>
1111
</activity>
1212
</application>
13-
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="23" />
13+
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="24" />
1414
</manifest>

samples/cordova/text_chat/platforms/android/CordovaLib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ buildscript {
2424
}
2525

2626
dependencies {
27-
classpath 'com.android.tools.build:gradle:1.5.0'
27+
classpath 'com.android.tools.build:gradle:2.1.0'
2828
}
2929

3030
}
3131

32-
apply plugin: 'android-library'
32+
apply plugin: 'com.android.library'
3333

3434
ext {
3535
apply from: 'cordova.gradle'

0 commit comments

Comments
 (0)