Skip to content

Commit

Permalink
Initialize device calendar package
Browse files Browse the repository at this point in the history
  • Loading branch information
lyabs243 committed Oct 17, 2023
1 parent d53d411 commit 8683a61
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions android/app/proguard-rules.pro
@@ -0,0 +1 @@
-keep class com.builttoroam.devicecalendar.** { *; }
5 changes: 5 additions & 0 deletions android/app/src/main/AndroidManifest.xml
@@ -1,8 +1,13 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.READ_CALENDAR" />
<uses-permission android:name="android.permission.WRITE_CALENDAR" />

<application
android:label="flutter_calendar_events"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">

<activity
android:name=".MainActivity"
android:exported="true"
Expand Down
4 changes: 4 additions & 0 deletions ios/Runner/Info.plist
Expand Up @@ -47,5 +47,9 @@
<true/>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
<key>NSCalendarsUsageDescription</key>
<string>Access most functions for calendar viewing and editing.</string>
<key>NSContactsUsageDescription</key>
<string>Access contacts for event attendee editing.</string>
</dict>
</plist>
4 changes: 4 additions & 0 deletions pubspec.yaml
Expand Up @@ -36,6 +36,10 @@ dependencies:
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: ^1.0.2
intl: ^0.18.1
device_calendar:
git:
url: https://github.com/builttoroam/device_calendar.git
ref: 4.3.1

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 8683a61

Please sign in to comment.