expo-tracking-transparency 2.2.0 → 2.3.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 CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
+ ## 2.3.0 — 2022-07-07
14
+
15
+ ### 💡 Others
16
+
17
+ - Migrated Expo modules definitions to the new naming convention. ([#17193](https://github.com/expo/expo/pull/17193) by [@tsapeta](https://github.com/tsapeta))
18
+
13
19
  ## 2.2.0 — 2022-04-18
14
20
 
15
21
  ### 💡 Others
@@ -2,13 +2,13 @@ import ExpoModulesCore
2
2
 
3
3
  public class TrackingTransparencyModule: Module {
4
4
  public func definition() -> ModuleDefinition {
5
- name("ExpoTrackingTransparency")
5
+ Name("ExpoTrackingTransparency")
6
6
 
7
- onCreate {
7
+ OnCreate {
8
8
  EXPermissionsMethodsDelegate.register([EXTrackingPermissionRequester()], withPermissionsManager: self.appContext?.permissions)
9
9
  }
10
10
 
11
- function("getPermissionsAsync") { (promise: Promise) in
11
+ AsyncFunction("getPermissionsAsync") { (promise: Promise) in
12
12
  EXPermissionsMethodsDelegate.getPermissionWithPermissionsManager(
13
13
  self.appContext?.permissions,
14
14
  withRequester: EXTrackingPermissionRequester.self,
@@ -17,7 +17,7 @@ public class TrackingTransparencyModule: Module {
17
17
  )
18
18
  }
19
19
 
20
- function("requestPermissionsAsync") { (promise: Promise) in
20
+ AsyncFunction("requestPermissionsAsync") { (promise: Promise) in
21
21
  EXPermissionsMethodsDelegate.askForPermission(
22
22
  withPermissionsManager: self.appContext?.permissions,
23
23
  withRequester: EXTrackingPermissionRequester.self,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-tracking-transparency",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "An Expo library for requesting permission to track the users on devices using iOS 14.5 and higher.",
5
5
  "main": "build/TrackingTransparency.js",
6
6
  "types": "build/TrackingTransparency.d.ts",
@@ -30,7 +30,7 @@
30
30
  "license": "MIT",
31
31
  "homepage": "https://docs.expo.dev/versions/latest/sdk/module-template",
32
32
  "dependencies": {
33
- "@expo/config-plugins": "^4.0.14"
33
+ "@expo/config-plugins": "~5.0.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "expo-module-scripts": "^2.0.0"
@@ -41,5 +41,5 @@
41
41
  "jest": {
42
42
  "preset": "expo-module-scripts"
43
43
  },
44
- "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
44
+ "gitHead": "6e131f2da851a47c3a24eb3d6fc971a1a7822086"
45
45
  }
package/tsconfig.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "outDir": "./build"
6
6
  },
7
7
  "include": ["./src"],
8
- "exclude": ["**/__mocks__/*", "**/__tests__/*"]
8
+ "exclude": ["**/__mocks__/*", "**/__tests__/*", "**/__stories__/*"]
9
9
  }