Skip to content

Commit

Permalink
change dep, dog fooded
Browse files Browse the repository at this point in the history
  • Loading branch information
KennyHuRadar committed Aug 1, 2024
1 parent 36c35a1 commit f561843
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 9 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# 3.10.0-beta.3

- Bump iOS version from 3.9.14 to 3.16.0-beta.1
- Bump Android version from 3.9.8 to 3.16.0-beta.1
- Bump iOS version from 3.9.14 to 3.16.1-beta.1
- Bump Android version from 3.9.8 to 3.16.1-beta.1

# 3.9.1

Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ android {
}

dependencies {
implementation 'io.radar:sdk:3.16.0-beta.1'
implementation 'io.radar:sdk:3.16.1-beta.1'
implementation 'com.google.android.gms:play-services-location:21.0.1'
implementation 'com.google.code.gson:gson:2.8.6'
}
2 changes: 1 addition & 1 deletion example/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {
}

dependencies {
implementation 'io.radar:sdk:3.16.0-beta.1'
implementation 'io.radar:sdk:3.16.1-beta.1'
implementation "com.google.android.play:integrity:1.2.0"
}
}
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = U6493D9J45;
DEVELOPMENT_TEAM = 96GHH65B9D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -501,7 +501,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = U6493D9J45;
DEVELOPMENT_TEAM = 96GHH65B9D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down Expand Up @@ -529,7 +529,7 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
DEVELOPMENT_TEAM = U6493D9J45;
DEVELOPMENT_TEAM = 96GHH65B9D;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
Expand Down
16 changes: 15 additions & 1 deletion example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter/material.dart';
import 'dart:async';
import 'package:flutter_radar/flutter_radar.dart';
import 'package:permission_handler/permission_handler.dart';

void main() => runApp(MyApp());

Expand Down Expand Up @@ -174,6 +175,19 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
},
child: Text('completeTrip'),
),
ElevatedButton(
style: raisedButtonStyle,
onPressed: () async {
PermissionStatus status =
await Permission.activityRecognition.request();
if (status.isGranted) {
print('Permission granted');
} else {
print('Permission denied');
}
},
child: Text('request activity permissions'),
),
ElevatedButton(
style: raisedButtonStyle,
onPressed: () async {
Expand Down Expand Up @@ -418,7 +432,7 @@ class _MyAppState extends State<MyApp> with WidgetsBindingObserver {
ElevatedButton(
style: raisedButtonStyle,
onPressed: () async {
Map? resp = await Radar.validateAddress(address:{
Map? resp = await Radar.validateAddress(address: {
"city": "NEW YORK",
"stateCode": "NY",
"postalCode": "10003",
Expand Down
2 changes: 2 additions & 0 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.5

permission_handler: ^10.2.0

dev_dependencies:
flutter_test:
sdk: flutter
Expand Down
2 changes: 1 addition & 1 deletion ios/flutter_radar.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Pod::Spec.new do |s|
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.dependency 'Flutter'
s.dependency 'RadarSDK', '3.16.0-beta.1'
s.dependency 'RadarSDK', '3.16.1-beta.1'
s.platform = :ios, '10.0'
s.static_framework = true

Expand Down

0 comments on commit f561843

Please sign in to comment.