Skip to content

Commit 24517ca

Browse files
committed
Merge pull request #27 from one-signal/class_name_conflict_fix_and_target_manifest_entry
Fixed class name conflict with RootTools and target manifest entry.
2 parents b7a4401 + 1ef27f0 commit 24517ca

File tree

4 files changed

+23
-28
lines changed

4 files changed

+23
-28
lines changed

OneSignalSDK.jar

-79 Bytes
Binary file not shown.

OneSignalSDK/onesignal/build.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ android {
55
buildToolsVersion "23.0.2"
66

77
defaultConfig {
8-
minSdkVersion 10
9-
targetSdkVersion 23
8+
minSdkVersion 9
109
consumerProguardFiles 'consumer-proguard-rules.pro'
1110
}
1211

OneSignalSDK/onesignal/src/main/java/com/onesignal/OneSignal.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
import android.os.SystemClock;
6262
import android.util.Log;
6363

64-
import com.stericson.RootTools.internal.RootToolsInternalMethods;
65-
6664
import com.onesignal.OneSignalDbContract.NotificationTable;
6765

6866
public class OneSignal {
@@ -155,7 +153,7 @@ public void init() {
155153
private static TrackGooglePurchase trackGooglePurchase;
156154
private static TrackAmazonPurchase trackAmazonPurchase;
157155

158-
public static final String VERSION = "020102";
156+
public static final String VERSION = "020103";
159157

160158
private static AdvertisingIdentifierProvider mainAdIdProvider = new AdvertisingIdProviderGPS();
161159

Original file line numberDiff line numberDiff line change
@@ -1,42 +1,40 @@
11
/**
22
* This file is part of the RootTools Project: http://code.google.com/p/roottools/
3-
*
3+
*
44
* Copyright (c) 2012 Stephen Erickson, Chris Ravenscroft, Dominik Schuermann, Adam Shanks
5-
*
5+
*
66
* This code is dual-licensed under the terms of the Apache License Version 2.0 and
77
* the terms of the General Public License (GPL) Version 2.
88
* You may use this code according to either of these licenses as is most appropriate
99
* for your project on a case-by-case basis.
10-
*
10+
*
1111
* The terms of each license can be found at:
12-
*
12+
*
1313
* * http://www.apache.org/licenses/LICENSE-2.0
1414
* * http://www.gnu.org/licenses/gpl-2.0.txt
15-
*
15+
*
1616
* Unless required by applicable law or agreed to in writing, software
1717
* distributed under these Licenses is distributed on an "AS IS" BASIS,
1818
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1919
* See each License for the specific language governing permissions and
2020
* limitations under that License.
2121
*/
2222

23-
package com.stericson.RootTools.internal;
23+
// Namespaced in com.onesignal to prevent class name conflicts if app developer includes the full RootTools library.
24+
package com.onesignal;
2425

25-
public class RootToolsInternalMethods {
26-
public static boolean isRooted() {
27-
boolean found = false;
28-
if (!found) {
29-
String[] places = { "/sbin/", "/system/bin/", "/system/xbin/",
30-
"/data/local/xbin/", "/data/local/bin/",
31-
"/system/sd/xbin/", "/system/bin/failsafe/", "/data/local/" };
32-
for (String where : places) {
33-
if (new java.io.File(where + "su").exists()) {
34-
found = true;
35-
break;
36-
}
37-
}
38-
}
39-
40-
return found;
41-
}
26+
class RootToolsInternalMethods {
27+
static boolean isRooted() {
28+
String[] places = {"/sbin/", "/system/bin/", "/system/xbin/",
29+
"/data/local/xbin/", "/data/local/bin/",
30+
"/system/sd/xbin/", "/system/bin/failsafe/",
31+
"/data/local/"};
32+
33+
for (String where : places) {
34+
if (new java.io.File(where + "su").exists())
35+
return true;
36+
}
37+
38+
return false;
39+
}
4240
}

0 commit comments

Comments
 (0)