Skip to content

Commit ba0a825

Browse files
KenChoiKenChoi
authored andcommitted
modify demo, update version
1 parent cbfdebb commit ba0a825

File tree

7 files changed

+25
-21
lines changed

7 files changed

+25
-21
lines changed

android/build.gradle

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,3 @@
1-
buildscript {
2-
repositories {
3-
jcenter()
4-
}
5-
6-
dependencies {
7-
classpath 'com.android.tools.build:gradle:2.3.1'
8-
}
9-
}
10-
111
apply plugin: 'com.android.library'
122

133
android {

example/.vscode/launch.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "node",
9+
"request": "launch",
10+
"name": "Launch Program",
11+
"program": "${file}"
12+
}
13+
]
14+
}

example/android/app/app.iml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,19 @@
104104
<orderEntry type="jdk" jdkName="Android API 25 Platform (1)" jdkType="Android SDK" />
105105
<orderEntry type="sourceFolder" forTests="false" />
106106
<orderEntry type="library" name="com.google.code.gson:gson:2.8.0@jar" level="project" />
107-
<orderEntry type="library" name="cn.jiguang.imui:chatinput-0.4.9" level="project" />
108107
<orderEntry type="library" name="com.squareup.okhttp3:okhttp-ws:3.4.1@jar" level="project" />
109108
<orderEntry type="library" name="com.github.w446108264:AndroidEmoji-1.0.0" level="project" />
110109
<orderEntry type="library" name="com.google.android:flexbox-0.2.5" level="project" />
111110
<orderEntry type="library" name="com.facebook.fresco:imagepipeline-base-1.0.1" level="project" />
111+
<orderEntry type="library" name="cn.jiguang.imui:chatinput-0.5.0" level="project" />
112112
<orderEntry type="library" name="javax.inject:javax.inject:1@jar" level="project" />
113113
<orderEntry type="library" name="com.android.support:support-core-ui-25.3.1" level="project" />
114114
<orderEntry type="library" name="com.android.support:support-compat-25.3.1" level="project" />
115115
<orderEntry type="library" name="com.parse.bolts:bolts-tasks:1.4.0@jar" level="project" />
116-
<orderEntry type="library" name="cn.jiguang.imui:messagelist-0.5.0" level="project" />
117116
<orderEntry type="library" name="com.google.code.findbugs:jsr305:3.0.0@jar" level="project" />
118117
<orderEntry type="library" name="com.facebook.react:react-native-0.44.2" level="project" />
119118
<orderEntry type="library" name="com.squareup.okhttp3:okhttp-urlconnection:3.4.1@jar" level="project" />
119+
<orderEntry type="library" name="cn.jiguang.imui:messagelist-0.5.2" level="project" />
120120
<orderEntry type="library" name="__local_aars__:/Users/caiyg/Desktop/github/jmessage-react-plugin/example/node_modules/jcore-react-native/android/libs/jcore-android-1.1.7.jar:unspecified@jar" level="project" />
121121
<orderEntry type="library" name="com.facebook.soloader:soloader-0.1.0" level="project" />
122122
<orderEntry type="library" name="com.android.support:support-core-utils-25.3.1" level="project" />

example/android/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildscript {
1414
}
1515
}
1616
dependencies {
17-
classpath 'com.android.tools.build:gradle:3.0.0'
17+
classpath 'com.android.tools.build:gradle:3.0.1'
1818

1919
// NOTE: Do not place your application dependencies here; they belong
2020
// in the individual module build.gradle files

example/app/routes/Chat/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ export default class Chat extends Component {
211211
JMessage.addReceiveMessageListener(this.receiveMessageCallBack)
212212
}
213213
AuroraIController.addMessageListDidLoadListener(this.messageListDidLoadCallback)
214-
//this.timer = setTimeout(() => {
215-
// console.log("Sending custom message")
216-
// this.sendCustomMessage();
217-
//}, 2000)
214+
this.timer = setTimeout(() => {
215+
console.log("Sending custom message")
216+
this.sendCustomMessage();
217+
}, 2000)
218218
}
219219

220220
componentWillUnmount() {

example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"start": "node node_modules/react-native/local-cli/cli.js start"
66
},
77
"dependencies": {
8-
"jcore-react-native": "^1.2.2",
8+
"aurora-imui-react-native": "^0.5.6",
9+
"jcore-react-native": "^1.2.1",
910
"jmessage-react-plugin": "^2.1.0",
1011
"react": "16.0.0-alpha.12",
11-
"react-native-fs": "^2.8.5",
12-
"aurora-imui-react-native": "^0.5.6",
1312
"react-native": "^0.50.0",
13+
"react-native-fs": "^2.8.5",
1414
"react-navigation": "^1.0.0-beta.11",
1515
"react-timer-mixin": "^0.13.3"
1616
},

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jmessage-react-plugin",
3-
"version": "2.1.0",
3+
"version": "2.1.1",
44
"description": "a jmessage plugin for react native application",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)