Skip to content

Commit af82793

Browse files
fix sdk for android
1 parent d2e2291 commit af82793

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

android/.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-15/"/>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17/"/>
44
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
55
<classpathentry kind="output" path="bin/default"/>
66
</classpath>

android/src/main/java/com/reactnativetelematicssdk/TelematicsSdkModule.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ public Settings setTelematicsSettings() {
6868
Settings.getAccuracyHigh(),
6969
true,
7070
true,
71-
true,
7271
false
7372
);
7473
Log.d(TAG, "setTelematicsSettings");

example/ios/TelematicsSdkExample/AppDelegate.mm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ - (NSURL *)getBundleURL
3030
return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
3131
#endif
3232
}
33+
- (void)applicationWillEnterForeground:(UIApplication *)application {
34+
[RPEntry applicationWillEnterForeground:application];
35+
}
3336

3437
- (void)application:(UIApplication *)application handleEventsForBackgroundURLSession:(nonnull NSString *)identifier completionHandler:(nonnull void (^)(void))completionHandler {
3538
[RPEntry application:application handleEventsForBackgroundURLSession:identifier completionHandler:completionHandler];

react-native-telematics-sdk.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Pod::Spec.new do |s|
1010
s.license = package["license"]
1111
s.authors = package["author"]
1212

13-
s.platforms = { :ios => "12.0" }
13+
s.platforms = { :ios => "13.0" }
1414
s.source = { :git => "https://github.com/maximcodm/react-native-telematics-sdk.git", :tag => "#{s.version}" }
1515

1616
s.source_files = "ios/**/*.{h,m,mm,swift}"

0 commit comments

Comments
 (0)