File tree Expand file tree Collapse file tree
src/main/java/de/innfactory/apiai Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,7 +56,12 @@ android {
5656
5757dependencies {
5858 compile " com.facebook.react:react-native:+"
59+ compile fileTree(dir : ' libs' , include : [' *.jar' ])
60+ compile ' com.android.support:appcompat-v7:23.2.1'
5961 compile ' ai.api:sdk:2.0.7@aar'
60- compile ' ai.api:libai:1.4.8'
6162 compile ' com.google.code.gson:gson:2.3'
62- }
63+ compile ' commons-io:commons-io:2.4'
64+ compile(' ai.api:libai:1.4.8' ) {
65+ exclude module : ' log4j-core'
66+ }
67+ }
Original file line number Diff line number Diff line change @@ -101,14 +101,14 @@ public void getLanguage(Promise promise) {
101101 @ ReactMethod
102102 public void setContextsAsJson (String contextsAsJson ) {
103103 Gson gson = new Gson ();
104- contexts = gson .fromJson (contextsAsJson , new TypeToken <List <Entity >>() {
104+ contexts = gson .fromJson (contextsAsJson , new TypeToken <List <AIContext >>() {
105105 }.getType ());
106106 }
107107
108108 @ ReactMethod
109109 public void setPermanentContextsAsJson (String contextsAsJson ) {
110110 Gson gson = new Gson ();
111- permantentContexts = gson .fromJson (contextsAsJson , new TypeToken <List <Entity >>() {
111+ permantentContexts = gson .fromJson (contextsAsJson , new TypeToken <List <AIContext >>() {
112112 }.getType ());
113113 }
114114
You can’t perform that action at this time.
0 commit comments