expo-calendar 10.0.3 → 10.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -4
- package/README.md +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/expo/modules/calendar/CalendarModule.kt +4 -4
- package/build/Calendar.d.ts +582 -34
- package/build/Calendar.js +220 -22
- package/build/Calendar.js.map +1 -1
- package/package.json +7 -5
- package/plugin/build/withCalendar.js +1 -1
- package/src/Calendar.ts +679 -84
package/CHANGELOG.md
CHANGED
|
@@ -10,13 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
-
## 10.0
|
|
13
|
+
## 10.1.0 — 2021-12-03
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
### 🐛 Bug fixes
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- [Android] Fix `allowModifications` always return false in calendar object. ([#15307](https://github.com/expo/expo/pull/15307) by [@jekiwijaya](https://github.com/jekiwijaya))
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
### 💡 Others
|
|
20
|
+
|
|
21
|
+
- Replace custom `OptionalKeys` type wrapper with embedded in TypeScript `Partial`. ([#15192](https://github.com/expo/expo/pull/15192) by [@Simek](https://github.com/Simek))
|
|
22
|
+
- Extract nested object in current types to new, separate types: `AlarmLocation` and `DaysOfTheWeek`. ([#15192](https://github.com/expo/expo/pull/15192) by [@Simek](https://github.com/Simek))
|
|
20
23
|
|
|
21
24
|
## 10.0.1 — 2021-10-01
|
|
22
25
|
|
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@ For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-
|
|
|
13
13
|
|
|
14
14
|
# Installation in bare React Native projects
|
|
15
15
|
|
|
16
|
-
For bare React Native projects, you must ensure that you have [installed and configured the `
|
|
16
|
+
For bare React Native projects, you must ensure that you have [installed and configured the `expo` package](https://docs.expo.dev/bare/installing-expo-modules/) before continuing.
|
|
17
17
|
|
|
18
18
|
### Add the package to your npm dependencies
|
|
19
19
|
|
package/android/build.gradle
CHANGED
|
@@ -3,7 +3,7 @@ apply plugin: 'kotlin-android'
|
|
|
3
3
|
apply plugin: 'maven'
|
|
4
4
|
|
|
5
5
|
group = 'host.exp.exponent'
|
|
6
|
-
version = '10.0
|
|
6
|
+
version = '10.1.0'
|
|
7
7
|
|
|
8
8
|
buildscript {
|
|
9
9
|
// Simple helper that allows the root project to override versions declared by this library.
|
|
@@ -61,7 +61,7 @@ android {
|
|
|
61
61
|
minSdkVersion safeExtGet("minSdkVersion", 21)
|
|
62
62
|
targetSdkVersion safeExtGet("targetSdkVersion", 30)
|
|
63
63
|
versionCode 17
|
|
64
|
-
versionName '10.0
|
|
64
|
+
versionName '10.1.0'
|
|
65
65
|
}
|
|
66
66
|
lintOptions {
|
|
67
67
|
abortOnError false
|
|
@@ -785,10 +785,10 @@ class CalendarModule(
|
|
|
785
785
|
putString("accessLevel", calAccessStringMatchingConstant(accessLevel))
|
|
786
786
|
putBoolean(
|
|
787
787
|
"allowsModifications",
|
|
788
|
-
accessLevel == CalendarContract.Calendars.CAL_ACCESS_ROOT
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
788
|
+
accessLevel == CalendarContract.Calendars.CAL_ACCESS_ROOT ||
|
|
789
|
+
accessLevel == CalendarContract.Calendars.CAL_ACCESS_OWNER ||
|
|
790
|
+
accessLevel == CalendarContract.Calendars.CAL_ACCESS_EDITOR ||
|
|
791
|
+
accessLevel == CalendarContract.Calendars.CAL_ACCESS_CONTRIBUTOR
|
|
792
792
|
)
|
|
793
793
|
}
|
|
794
794
|
val source = Bundle().apply {
|