expo-sms 10.1.1 → 10.2.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,7 +10,13 @@
10
10
 
11
11
  ### 💡 Others
12
12
 
13
- ## 10.1.1 — 2022-02-01
13
+ ## 10.2.0 — 2022-04-18
14
+
15
+ ### ⚠️ Notices
16
+
17
+ - On Android bump `compileSdkVersion` to `31`, `targetSdkVersion` to `31` and `Java` version to `11`. ([#16941](https://github.com/expo/expo/pull/16941) by [@bbarthec](https://github.com/bbarthec))
18
+
19
+ ## 10.1.1 - 2022-02-01
14
20
 
15
21
  ### 🐛 Bug fixes
16
22
 
package/README.md CHANGED
@@ -4,12 +4,12 @@ Provides access to the system's UI/app for sending SMS messages.
4
4
 
5
5
  # API documentation
6
6
 
7
- - [Documentation for the master branch](https://github.com/expo/expo/blob/master/docs/pages/versions/unversioned/sdk/sms.md)
8
- - [Documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/sms/)
7
+ - [Documentation for the main branch](https://github.com/expo/expo/blob/main/docs/pages/versions/unversioned/sdk/sms.md)
8
+ - [Documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/sms/)
9
9
 
10
10
  # Installation in managed Expo projects
11
11
 
12
- For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.io/versions/latest/sdk/sms/).
12
+ For [managed](https://docs.expo.dev/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](https://docs.expo.dev/versions/latest/sdk/sms/).
13
13
 
14
14
  # Installation in bare React Native projects
15
15
 
@@ -3,20 +3,35 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '10.1.1'
6
+ version = '10.2.0'
7
7
 
8
8
  buildscript {
9
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
+ if (expoModulesCorePlugin.exists()) {
11
+ apply from: expoModulesCorePlugin
12
+ applyKotlinExpoModulesCorePlugin()
13
+ }
14
+
9
15
  // Simple helper that allows the root project to override versions declared by this library.
10
16
  ext.safeExtGet = { prop, fallback ->
11
17
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
12
18
  }
13
19
 
20
+ // Ensures backward compatibility
21
+ ext.getKotlinVersion = {
22
+ if (ext.has("kotlinVersion")) {
23
+ ext.kotlinVersion()
24
+ } else {
25
+ ext.safeExtGet("kotlinVersion", "1.6.10")
26
+ }
27
+ }
28
+
14
29
  repositories {
15
30
  mavenCentral()
16
31
  }
17
32
 
18
33
  dependencies {
19
- classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${safeExtGet('kotlinVersion', '1.4.21')}")
34
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
20
35
  }
21
36
  }
22
37
 
@@ -44,18 +59,22 @@ afterEvaluate {
44
59
  }
45
60
 
46
61
  android {
47
- compileSdkVersion safeExtGet("compileSdkVersion", 30)
62
+ compileSdkVersion safeExtGet("compileSdkVersion", 31)
48
63
 
49
64
  compileOptions {
50
- sourceCompatibility JavaVersion.VERSION_1_8
51
- targetCompatibility JavaVersion.VERSION_1_8
65
+ sourceCompatibility JavaVersion.VERSION_11
66
+ targetCompatibility JavaVersion.VERSION_11
67
+ }
68
+
69
+ kotlinOptions {
70
+ jvmTarget = JavaVersion.VERSION_11.majorVersion
52
71
  }
53
72
 
54
73
  defaultConfig {
55
74
  minSdkVersion safeExtGet("minSdkVersion", 21)
56
- targetSdkVersion safeExtGet("targetSdkVersion", 30)
75
+ targetSdkVersion safeExtGet("targetSdkVersion", 31)
57
76
  versionCode 28
58
- versionName "10.1.1"
77
+ versionName "10.2.0"
59
78
  }
60
79
  lintOptions {
61
80
  abortOnError false
@@ -67,10 +86,10 @@ dependencies {
67
86
 
68
87
  implementation 'androidx.annotation:annotation:1.1.0'
69
88
 
70
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${safeExtGet('kotlinVersion', '1.4.21')}"
89
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
71
90
 
72
- if (project.findProject(':unimodules-test-core')) {
73
- testImplementation project(':unimodules-test-core')
91
+ if (project.findProject(':expo-modules-test-core')) {
92
+ testImplementation project(':expo-modules-test-core')
74
93
  }
75
94
  testImplementation "org.robolectric:robolectric:4.5.1"
76
95
  testImplementation 'junit:junit:4.12'
@@ -1,2 +1,3 @@
1
1
  declare const _default: import("expo-modules-core").ProxyNativeModule;
2
2
  export default _default;
3
+ //# sourceMappingURL=ExpoSMS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoSMS.d.ts","sourceRoot":"","sources":["../src/ExpoSMS.ts"],"names":[],"mappings":";AACA,wBAA0C"}
@@ -5,3 +5,4 @@ declare const _default: {
5
5
  sendSMSAsync(addresses: string[], message: string): Promise<SMSResponse>;
6
6
  };
7
7
  export default _default;
8
+ //# sourceMappingURL=ExpoSMS.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExpoSMS.web.d.ts","sourceRoot":"","sources":["../src/ExpoSMS.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;;;wBAMd,QAAQ,OAAO,CAAC;4BAGZ,MAAM,EAAE,WAAW,MAAM,GAAG,QAAQ,WAAW,CAAC;;AAPhF,wBAUE"}
package/build/SMS.d.ts CHANGED
@@ -51,3 +51,4 @@ export declare function sendSMSAsync(addresses: string | string[], message: stri
51
51
  * ```
52
52
  */
53
53
  export declare function isAvailableAsync(): Promise<boolean>;
54
+ //# sourceMappingURL=SMS.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SMS.d.ts","sourceRoot":"","sources":["../src/SMS.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAErE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC;AAmBlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,YAAY,CAChC,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,EAC5B,OAAO,EAAE,MAAM,EACf,OAAO,CAAC,EAAE,UAAU,GACnB,OAAO,CAAC,WAAW,CAAC,CAiBtB;AAGD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,OAAO,CAAC,CAEzD"}
@@ -10,7 +10,7 @@ export declare type SMSResponse = {
10
10
  export declare type SMSAttachment = {
11
11
  /**
12
12
  * The content URI of the attachment. The URI needs be a content URI so that it can be accessed by
13
- * other applications outside of Expo. (See [FileSystem.getContentUriAsync](../filesystem/#filesystemgetcontenturiasyncfileuri))
13
+ * other applications outside of Expo. See [FileSystem.getContentUriAsync](./filesystem/#filesystemgetcontenturiasyncfileuri)).
14
14
  */
15
15
  uri: string;
16
16
  /**
@@ -25,3 +25,4 @@ export declare type SMSAttachment = {
25
25
  export declare type SMSOptions = {
26
26
  attachments?: SMSAttachment | SMSAttachment[] | undefined;
27
27
  };
28
+ //# sourceMappingURL=SMS.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SMS.types.d.ts","sourceRoot":"","sources":["../src/SMS.types.ts"],"names":[],"mappings":"AACA,oBAAY,WAAW,GAAG;IACxB;;OAEG;IACH,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,WAAW,CAAC;CAC1C,CAAC;AAGF;;GAEG;AACH,oBAAY,aAAa,GAAG;IAC1B;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAGF,oBAAY,UAAU,GAAG;IACvB,WAAW,CAAC,EAAE,aAAa,GAAG,aAAa,EAAE,GAAG,SAAS,CAAC;CAC3D,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"SMS.types.js","sourceRoot":"","sources":["../src/SMS.types.ts"],"names":[],"mappings":"","sourcesContent":["// @needsAudit\nexport type SMSResponse = {\n /**\n * Status of SMS action invoked by the user.\n */\n result: 'unknown' | 'sent' | 'cancelled';\n};\n\n// @needsAudit\n/**\n * An object that is used to describe an attachment that is included with a SMS message.\n */\nexport type SMSAttachment = {\n /**\n * The content URI of the attachment. The URI needs be a content URI so that it can be accessed by\n * other applications outside of Expo. (See [FileSystem.getContentUriAsync](../filesystem/#filesystemgetcontenturiasyncfileuri))\n */\n uri: string;\n /**\n * The mime type of the attachment such as `image/png`.\n */\n mimeType: string;\n /**\n * The filename of the attachment.\n */\n filename: string;\n};\n\n// @needsAudit @docsMissing\nexport type SMSOptions = {\n attachments?: SMSAttachment | SMSAttachment[] | undefined;\n};\n"]}
1
+ {"version":3,"file":"SMS.types.js","sourceRoot":"","sources":["../src/SMS.types.ts"],"names":[],"mappings":"","sourcesContent":["// @needsAudit\nexport type SMSResponse = {\n /**\n * Status of SMS action invoked by the user.\n */\n result: 'unknown' | 'sent' | 'cancelled';\n};\n\n// @needsAudit\n/**\n * An object that is used to describe an attachment that is included with a SMS message.\n */\nexport type SMSAttachment = {\n /**\n * The content URI of the attachment. The URI needs be a content URI so that it can be accessed by\n * other applications outside of Expo. See [FileSystem.getContentUriAsync](./filesystem/#filesystemgetcontenturiasyncfileuri)).\n */\n uri: string;\n /**\n * The mime type of the attachment such as `image/png`.\n */\n mimeType: string;\n /**\n * The filename of the attachment.\n */\n filename: string;\n};\n\n// @needsAudit @docsMissing\nexport type SMSOptions = {\n attachments?: SMSAttachment | SMSAttachment[] | undefined;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-sms",
3
- "version": "10.1.1",
3
+ "version": "10.2.0",
4
4
  "description": "Provides access to the system's UI/app for sending SMS messages.",
5
5
  "main": "build/SMS.js",
6
6
  "types": "build/SMS.d.ts",
@@ -40,5 +40,5 @@
40
40
  "peerDependencies": {
41
41
  "expo": "*"
42
42
  },
43
- "gitHead": "ba24eba18bf4f4d4b0d54828992d81a2bb18246a"
43
+ "gitHead": "22dce752354bb429c84851bc4389abe47a766b1f"
44
44
  }
package/src/SMS.types.ts CHANGED
@@ -13,7 +13,7 @@ export type SMSResponse = {
13
13
  export type SMSAttachment = {
14
14
  /**
15
15
  * The content URI of the attachment. The URI needs be a content URI so that it can be accessed by
16
- * other applications outside of Expo. (See [FileSystem.getContentUriAsync](../filesystem/#filesystemgetcontenturiasyncfileuri))
16
+ * other applications outside of Expo. See [FileSystem.getContentUriAsync](./filesystem/#filesystemgetcontenturiasyncfileuri)).
17
17
  */
18
18
  uri: string;
19
19
  /**