Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0 prerelease #445

Open
wants to merge 58 commits into
base: release
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
40b1135
Implementing Rrule package (#403)
GoldenSoju Oct 6, 2022
f7e30e3
fix for ownerAccount null
thomassth Sep 30, 2022
0b9bc98
more calendar data displayed
thomassth Sep 30, 2022
10c8d3a
example app dark mode
thomassth Oct 1, 2022
ce09d12
activate flutter lint
thomassth Oct 6, 2022
a8a217e
more linting fixes
thomassth Oct 7, 2022
b2e4384
Merge pull request #443 from SungHyun22/ownerAccount-null
thomassth Oct 7, 2022
02859dc
Update issue templates
thomassth Oct 7, 2022
23726a4
Merge pull request #444 from builttoroam/thomassth-patch-2
thomassth Oct 11, 2022
aa31c46
packages cleanup
thomassth Oct 12, 2022
53ac92f
Fix create/update events in IOS
Oct 13, 2022
b73a670
Merge pull request #449 from thomassth/reduce-import
thomassth Oct 14, 2022
bd290e8
Fixed formatting
Oct 17, 2022
d3d3927
Fixed file formatting with spaces
Oct 17, 2022
5ba6b55
iOS: Fix error when adding attendees due to UUID is nil.
GoldenSoju Nov 1, 2022
05c3821
Merge pull request #453 from GoldenSoju/ios_attendees_fix
IVLIVS-III Nov 2, 2022
039f047
Merge pull request #450 from OleksandraFedotova/develop
IVLIVS-III Nov 2, 2022
05dc04d
Remove faulty requestPermissions implementation in favor of working one
tjarvstrand Dec 31, 2022
c7300b0
Merge pull request #465 from tjarvstrand/fix-request-permissions
IVLIVS-III Jan 30, 2023
0c85ab0
parseRecurrenceRuleString() when else fix.
sgowda97 Feb 15, 2023
e3799b1
Fixed failing test (dart analyze).
IVLIVS-III Feb 17, 2023
47c851c
Bumped version and updated changelog.
IVLIVS-III Feb 17, 2023
472905f
Fix retrieving events for more than 4 years range
VladyslavBilomeria May 13, 2023
a41b440
Simplify the range size calculation algorithm
VladyslavBilomeria May 19, 2023
7304e82
Remove logs-related code
VladyslavBilomeria May 19, 2023
6d99ddd
Merge pull request #486 from VladyslavBilomeria/fix/ios-retrieve-events
IVLIVS-III May 20, 2023
4fc2c39
Merge branch 'release' into develop
IVLIVS-III May 20, 2023
82acd9b
Updated example project for iOS.
IVLIVS-III May 20, 2023
1e7ed58
Fixed deprecation issues.
IVLIVS-III May 20, 2023
772ee6b
Merge pull request #487 from builttoroam/align-develop-with-master
IVLIVS-III May 20, 2023
379c99b
add proguard rules
ebsangam Jun 19, 2023
3c24520
Merge pull request #489 from ebsangam/develop
IVLIVS-III Jun 19, 2023
623f0bf
Request FullAccess on iOS17+ (#497)
junqi Sep 16, 2023
6d65268
included namespace
Oct 10, 2023
e991dcc
Merge pull request #508 from ash80/develop
IVLIVS-III Oct 10, 2023
bddadd0
pipeline update
thomassth Nov 7, 2023
a6352f6
Merge pull request #513 from builttoroam/workflow-update
IVLIVS-III Mar 19, 2024
d650f91
building fixes
Jul 14, 2024
634fd1b
added event color for android
Jul 14, 2024
7dce8d1
added removing of event color
Jul 14, 2024
a669955
added updating of calendar color for android and ios
Jul 22, 2024
f447041
fixes for iOS updateCalendarcolor
Jul 22, 2024
c333f31
small fix
Jul 23, 2024
cd0c652
added calendar color file
Jul 23, 2024
75ee949
made colorKey accessible in event
Aug 12, 2024
72b58f2
set eventcolor, loaded eventColorKey for event
Aug 12, 2024
e6e88e8
mvoed color picker file
Aug 12, 2024
35c49e6
removed old color picker
Aug 12, 2024
992240b
exposed color and colorKey
Sep 4, 2024
44c248c
fixed color picker import
Sep 11, 2024
ba0910b
fixes for setting event color
Sep 11, 2024
c702f17
clean up
Sep 11, 2024
2ee14a1
added serilization test for eventColor
Sep 11, 2024
b41223c
tiny formatting adjustment
Sep 11, 2024
7876962
set example kotlin version to 1.8..22
Sep 11, 2024
755ddfa
flutter_native_timezone made release builds fail, migrated to flutter…
Sep 13, 2024
7791f59
increased rrule version from 0.2.10 to 0.2.15
Sep 25, 2024
6a9733c
Merge pull request #546 from chris-wolf/develop
IVLIVS-III Sep 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
flutter build apk
test-ios:
name: iOS build test
runs-on: macos-latest
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
name: Development Release
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -36,15 +38,10 @@ jobs:
run: |
sed -i "0,/\#\# \[.*/s//## [${{steps.changelog_reader.outputs.version}}-$GITHUB_RUN_ID]/" CHANGELOG.md
cat CHANGELOG.md
- name: Setup credentials
run: |
cat <<EOF > $PUB_CACHE/credentials.json
${{ secrets.CREDENTIALS }}
EOF
- name: Publish package
run: flutter pub publish --force
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}+${{ github.run_id }}
prerelease: true
prerelease: true
11 changes: 4 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
release:
# The type of runner that the job will run on
runs-on: ubuntu-latest
permissions:
id-token: write # Required for authentication using OIDC
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -25,18 +27,13 @@ jobs:
channel: "stable"
- run: dart --version
- run: flutter --version
- name: Setup credentials
run: |
cat <<EOF > $PUB_CACHE/credentials.json
${{ secrets.CREDENTIALS }}
EOF
- name: Publish package
run: flutter pub publish --force
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
- name: Get Changelog Entry
id: changelog_reader
uses: mindsers/[email protected]
- name: Add entry to Github release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.changelog_reader.outputs.version }}
body: ${{ steps.changelog_reader.outputs.changes }}
body: ${{ steps.changelog_reader.outputs.changes }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

<!-- To benefit from the current changelog reader in CI/CD, please follow the changelog format from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). -->

## [4.3.1](https://github.com/builttoroam/device_calendar/releases/tag/4.3.1)

- Fixed an [issue](https://github.com/builttoroam/device_calendar/issues/470) that prevented the plugin from being used with Kotlin 1.7.10

## [4.3.0](https://github.com/builttoroam/device_calendar/releases/tag/4.3.0)

- Updated multiple underlying dependencies
Expand Down
11 changes: 11 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 Expand Up @@ -107,4 +111,11 @@ For iOS 10+ support, you'll need to modify the `Info.plist` to add the following
<string>Access contacts for event attendee editing.</string>
```

For iOS 17+ support, add the following key/value pair as well.

```xml
<key>NSCalendarsFullAccessUsageDescription</key>
<string>Access most functions for calendar viewing and editing.</string>
```

Note that on iOS, this is a Swift plugin. There is a known issue being tracked [here](https://github.com/flutter/flutter/issues/16049) by the Flutter team, where adding a plugin developed in Swift to an Objective-C project causes problems. If you run into such issues, please look at the suggested workarounds there.
10 changes: 6 additions & 4 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ group 'com.builttoroam.devicecalendar'
version '1.0-SNAPSHOT'

buildscript {
ext.kotlin_version = '1.6.0'
ext.kotlin_version = '1.8.22'
repositories {
google()
mavenCentral()
Expand All @@ -25,14 +25,15 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'

android {
compileSdkVersion 30
compileSdkVersion 34

sourceSets {
main.java.srcDirs += 'src/main/kotlin'
}
defaultConfig {
minSdkVersion 16
minSdkVersion 19
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles 'proguard-rules.pro'
}
lintOptions {
disable 'InvalidPackage'
Expand All @@ -45,12 +46,13 @@ android {
kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
}
namespace 'com.builttoroam.devicecalendar'
}

dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'com.google.code.gson:gson:2.8.8'
api 'androidx.appcompat:appcompat:1.3.1'
implementation 'org.dmfs:lib-recur:0.11.2'
implementation 'org.dmfs:lib-recur:0.12.2'
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.0'
}
3 changes: 1 addition & 2 deletions android/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Thu May 17 10:56:13 AEST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip
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.** { *; }
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ import com.builttoroam.devicecalendar.models.Availability
import com.google.gson.*
import java.lang.reflect.Type

class AvailabilitySerializer: JsonSerializer<Availability> {
override fun serialize(src: Availability?, typeOfSrc: Type?, context: JsonSerializationContext?): JsonElement {
if(src != null) {
class AvailabilitySerializer : JsonSerializer<Availability> {
override fun serialize(
src: Availability?,
typeOfSrc: Type?,
context: JsonSerializationContext?
): JsonElement {
if (src != null) {
return JsonPrimitive(src.name)
}
return JsonObject()
Expand Down
Loading
Loading