Skip to content

Commit

Permalink
Merge pull request #489 from ebsangam/develop
Browse files Browse the repository at this point in the history
  • Loading branch information
IVLIVS-III authored Jun 19, 2023
2 parents 772ee6b + 379c99b commit 3c24520
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ If you don't need any timezone specific features in your app, you may use `flutt
```dart
import 'package:flutter_native_timezone/flutter_native_timezone.dart';
initializeTimeZones();
// As an example, our default timezone is UTC.
Location _currentLocation = getLocation('Etc/UTC');
Expand Down Expand Up @@ -78,6 +80,8 @@ The following will need to be added to the `AndroidManifest.xml` file for your a
```

### Proguard / R8 exceptions
> NOTE: From v4.3.2 developers no longer need to add proguard rule in their app.

By default, all android apps go through R8 for file shrinking when building a release version. Currently, it interferes with some functions such as `retrieveCalendars()`.

Expand Down
1 change: 1 addition & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android {
defaultConfig {
minSdkVersion 16
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}
lintOptions {
disable 'InvalidPackage'
Expand Down
1 change: 1 addition & 0 deletions android/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-keep class com.builttoroam.devicecalendar.** { *; }
4 changes: 2 additions & 2 deletions example/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ subprojects {
project.evaluationDependsOn(':app')
}

task clean(type: Delete) {
tasks.register("clean", Delete) {
delete rootProject.buildDir
}
}

0 comments on commit 3c24520

Please sign in to comment.