File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
OneSignalSDK/onesignal/src/main/java/com/onesignal Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -150,11 +150,10 @@ private static boolean hasJobIntentService() {
150
150
}
151
151
152
152
private Integer checkAndroidSupportLibrary (Context context ) {
153
- String version = getAndroidSupporVersionFromMetaFile ();
154
153
boolean hasWakefulBroadcastReceiver = hasWakefulBroadcastReceiver ();
155
154
boolean hasNotificationManagerCompat = hasNotificationManagerCompat ();
156
155
157
- if (version == null && !hasWakefulBroadcastReceiver && !hasNotificationManagerCompat ) {
156
+ if (!hasWakefulBroadcastReceiver && !hasNotificationManagerCompat ) {
158
157
OneSignal .Log (OneSignal .LOG_LEVEL .FATAL , "Could not find the Android Support Library. Please make sure it has been correctly added to your project." );
159
158
return UserState .PUSH_STATUS_MISSING_ANDROID_SUPPORT_LIBRARY ;
160
159
}
@@ -178,17 +177,6 @@ && getTargetSdkVersion(context) >= Build.VERSION_CODES.O) {
178
177
return null ;
179
178
}
180
179
181
- private static String getAndroidSupporVersionFromMetaFile () {
182
- InputStream inputStream = Object .class .getClassLoader ().getResourceAsStream ("META-INF/com.android.support_support-v4.version" );
183
- if (inputStream == null )
184
- return null ;
185
-
186
- Scanner scanner = new Scanner (inputStream , "UTF-8" );
187
- String version = scanner .useDelimiter ("\\ A" ).hasNext () ? scanner .next () : null ;
188
- scanner .close ();
189
- return version ;
190
- }
191
-
192
180
int getDeviceType () {
193
181
try {
194
182
// Class only available on the FireOS and only when the following is in the AndroidManifest.xml.
You can’t perform that action at this time.
0 commit comments