File tree 3 files changed +16
-3
lines changed
examples/tv-casting-app/android
java/com/chip/casting/util
jni/com/matter/casting/core
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ public class GlobalCastingConstants {
6
6
public static final int SetupPasscode = 20202021 ;
7
7
public static final int Discriminator = 0xF00 ;
8
8
public static final boolean ChipCastingSimplified =
9
- false ; // set this flag to true to demo simplified casting APIs
9
+ true ; // set this flag to true to demo simplified casting APIs
10
10
}
Original file line number Diff line number Diff line change 20
20
import android .content .Context ;
21
21
import android .util .Log ;
22
22
import chip .appserver .ChipAppServer ;
23
+ import chip .devicecontroller .ChipDeviceController ;
24
+ import chip .devicecontroller .ChipStructs ;
23
25
import chip .platform .AndroidBleManager ;
24
26
import chip .platform .AndroidChipPlatform ;
25
27
import chip .platform .ChipMdnsCallbackImpl ;
@@ -65,6 +67,15 @@ public MatterError initialize(AppParameters appParameters) {
65
67
return MatterError .CHIP_ERROR_INCORRECT_STATE ;
66
68
}
67
69
70
+ try
71
+ {
72
+ ChipDeviceController c = new ChipDeviceController (null );
73
+ }
74
+ catch (Throwable t )
75
+ {
76
+ Log .d (TAG , "Caught: " + t );
77
+ }
78
+
68
79
this .appParameters = appParameters ;
69
80
this .nsdManagerResolverAvailState =
70
81
new NsdManagerServiceResolver .NsdManagerResolverAvailState ();
Original file line number Diff line number Diff line change @@ -53,7 +53,8 @@ shared_library("jni") {
53
53
deps = [
54
54
" ${ chip_root } /examples/tv-casting-app/tv-casting-common" ,
55
55
" ${ chip_root } /src/app/server/java:jni" ,
56
- " ${ chip_root } /src/controller/java:jni" ,
56
+
57
+ # "${chip_root}/src/controller/java:jni",
57
58
" ${ chip_root } /src/lib" ,
58
59
" ${ chip_root } /third_party/inipp" ,
59
60
]
@@ -135,7 +136,8 @@ group("default") {
135
136
" :jni" ,
136
137
" ${ chip_root } /src/app/server/java" ,
137
138
" ${ chip_root } /src/controller/java:java" ,
138
- " ${ chip_root } /src/controller/java:jni" ,
139
+
140
+ # "${chip_root}/src/controller/java:jni",
139
141
" ${ chip_root } /src/platform/android:java" ,
140
142
]
141
143
}
You can’t perform that action at this time.
0 commit comments