expo-web-browser 12.6.0 → 12.7.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
+ ## 12.7.0 — 2023-10-17
14
+
15
+ ### 🛠 Breaking changes
16
+
17
+ - Dropped support for Android SDK 21 and 22. ([#24201](https://github.com/expo/expo/pull/24201) by [@behenate](https://github.com/behenate))
18
+
13
19
  ## 12.6.0 — 2023-09-15
14
20
 
15
21
  _This version does not introduce any user-facing changes._
@@ -3,16 +3,21 @@ apply plugin: 'kotlin-android'
3
3
  apply plugin: 'maven-publish'
4
4
 
5
5
  group = 'host.exp.exponent'
6
- version = '12.6.0'
6
+ version = '12.7.0'
7
7
 
8
8
 
9
- buildscript {
10
- def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
11
- if (expoModulesCorePlugin.exists()) {
12
- apply from: expoModulesCorePlugin
13
- applyKotlinExpoModulesCorePlugin()
9
+ def expoModulesCorePlugin = new File(project(":expo-modules-core").projectDir.absolutePath, "ExpoModulesCorePlugin.gradle")
10
+ if (expoModulesCorePlugin.exists()) {
11
+ apply from: expoModulesCorePlugin
12
+ applyKotlinExpoModulesCorePlugin()
13
+ // Remove this check, but keep the contents after SDK49 support is dropped
14
+ if (safeExtGet("expoProvidesDefaultConfig", false)) {
15
+ useExpoPublishing()
16
+ useCoreDependencies()
14
17
  }
18
+ }
15
19
 
20
+ buildscript {
16
21
  // Simple helper that allows the root project to override versions declared by this library.
17
22
  ext.safeExtGet = { prop, fallback ->
18
23
  rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
@@ -36,23 +41,44 @@ buildscript {
36
41
  }
37
42
  }
38
43
 
39
- afterEvaluate {
40
- publishing {
41
- publications {
42
- release(MavenPublication) {
43
- from components.release
44
+ // Remove this if and it's contents, when support for SDK49 is dropped
45
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
46
+ afterEvaluate {
47
+ publishing {
48
+ publications {
49
+ release(MavenPublication) {
50
+ from components.release
51
+ }
44
52
  }
45
- }
46
- repositories {
47
- maven {
48
- url = mavenLocal().url
53
+ repositories {
54
+ maven {
55
+ url = mavenLocal().url
56
+ }
49
57
  }
50
58
  }
51
59
  }
52
60
  }
53
61
 
54
62
  android {
55
- compileSdkVersion safeExtGet("compileSdkVersion", 33)
63
+ // Remove this if and it's contents, when support for SDK49 is dropped
64
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
65
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
66
+
67
+ defaultConfig {
68
+ minSdkVersion safeExtGet("minSdkVersion", 23)
69
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
70
+ }
71
+
72
+ publishing {
73
+ singleVariant("release") {
74
+ withSourcesJar()
75
+ }
76
+ }
77
+
78
+ lintOptions {
79
+ abortOnError false
80
+ }
81
+ }
56
82
 
57
83
  def agpVersion = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION
58
84
  if (agpVersion.tokenize('.')[0].toInteger() < 8) {
@@ -68,27 +94,20 @@ android {
68
94
 
69
95
  namespace "expo.modules.webbrowser"
70
96
  defaultConfig {
71
- minSdkVersion safeExtGet("minSdkVersion", 21)
72
- targetSdkVersion safeExtGet("targetSdkVersion", 33)
73
97
  versionCode 18
74
- versionName '12.6.0'
75
- }
76
- lintOptions {
77
- abortOnError false
78
- }
79
- publishing {
80
- singleVariant("release") {
81
- withSourcesJar()
82
- }
98
+ versionName '12.7.0'
83
99
  }
84
100
  }
85
101
 
86
102
  dependencies {
87
- implementation project(':expo-modules-core')
103
+ // Remove this if and it's contents, when support for SDK49 is dropped
104
+ if (!safeExtGet("expoProvidesDefaultConfig", false)) {
105
+ implementation project(':expo-modules-core')
106
+ implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
107
+ }
88
108
 
89
109
  api "androidx.browser:browser:1.2.0"
90
110
 
91
- implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${getKotlinVersion()}"
92
111
  implementation "androidx.core:core-ktx:1.7.0"
93
112
 
94
113
  if (project.findProject(':expo-modules-test-core')) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "expo-web-browser",
3
- "version": "12.6.0",
3
+ "version": "12.7.0",
4
4
  "description": "Provides access to the system's web browser and supports handling redirects. On iOS, it uses SFSafariViewController or SFAuthenticationSession, depending on the method you call, and on Android it uses ChromeCustomTabs. As of iOS 11, SFSafariViewController no longer shares cookies with Safari, so if you are using WebBrowser for authentication you will want to use WebBrowser.openAuthSessionAsync, and if you just want to open a webpage (such as your app privacy policy), then use WebBrowser.openBrowserAsync.",
5
5
  "main": "build/WebBrowser.js",
6
6
  "types": "build/WebBrowser.d.ts",
@@ -45,5 +45,5 @@
45
45
  "peerDependencies": {
46
46
  "expo": "*"
47
47
  },
48
- "gitHead": "ee2c866ba3c7fbc35ff2a3e896041cf15d3bd7c5"
48
+ "gitHead": "da25937e2a99661cbe5eb60ca1d8d6245fc96a50"
49
49
  }