File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ private static boolean hasHMSAvailabilityLibrary() {
156
156
try {
157
157
// noinspection ConstantConditions
158
158
return com .huawei .hms .api .HuaweiApiAvailability .class != null ;
159
- } catch (Exception e ) {
159
+ } catch (NoClassDefFoundError e ) {
160
160
return false ;
161
161
}
162
162
}
@@ -165,7 +165,7 @@ private static boolean hasHMSPushKitLibrary() {
165
165
try {
166
166
// noinspection ConstantConditions
167
167
return com .huawei .hms .aaid .HmsInstanceId .class != null ;
168
- } catch (Exception e ) {
168
+ } catch (NoClassDefFoundError e ) {
169
169
return false ;
170
170
}
171
171
}
@@ -174,7 +174,7 @@ private static boolean hasHMSAGConnectLibrary() {
174
174
try {
175
175
// noinspection ConstantConditions
176
176
return com .huawei .agconnect .config .AGConnectServicesConfig .class != null ;
177
- } catch (Exception e ) {
177
+ } catch (NoClassDefFoundError e ) {
178
178
return false ;
179
179
}
180
180
}
You can’t perform that action at this time.
0 commit comments