expo-template-bare-minimum 45.0.4 → 45.0.6

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.
@@ -294,25 +294,25 @@ dependencies {
294
294
  def isGifEnabled = (findProperty('expo.gif.enabled') ?: "") == "true";
295
295
  def isWebpEnabled = (findProperty('expo.webp.enabled') ?: "") == "true";
296
296
  def isWebpAnimatedEnabled = (findProperty('expo.webp.animated') ?: "") == "true";
297
+ def frescoVersion = rootProject.ext.frescoVersion
297
298
 
298
299
  // If your app supports Android versions before Ice Cream Sandwich (API level 14)
299
- // All fresco packages should use the same version
300
300
  if (isGifEnabled || isWebpEnabled) {
301
- implementation 'com.facebook.fresco:fresco:2.0.0'
302
- implementation 'com.facebook.fresco:imagepipeline-okhttp3:2.0.0'
301
+ implementation "com.facebook.fresco:fresco:${frescoVersion}"
302
+ implementation "com.facebook.fresco:imagepipeline-okhttp3:${frescoVersion}"
303
303
  }
304
304
 
305
305
  if (isGifEnabled) {
306
306
  // For animated gif support
307
- implementation 'com.facebook.fresco:animated-gif:2.0.0'
307
+ implementation "com.facebook.fresco:animated-gif:${frescoVersion}"
308
308
  }
309
309
 
310
310
  if (isWebpEnabled) {
311
311
  // For webp support
312
- implementation 'com.facebook.fresco:webpsupport:2.0.0'
312
+ implementation "com.facebook.fresco:webpsupport:${frescoVersion}"
313
313
  if (isWebpAnimatedEnabled) {
314
314
  // Animated webp support
315
- implementation 'com.facebook.fresco:animated-webp:2.0.0'
315
+ implementation "com.facebook.fresco:animated-webp:${frescoVersion}"
316
316
  }
317
317
  }
318
318
 
@@ -4,20 +4,21 @@ import org.apache.tools.ant.taskdefs.condition.Os
4
4
 
5
5
  buildscript {
6
6
  ext {
7
- buildToolsVersion = findProperty('android.buildToolsVersion') ?: "31.0.0"
8
- minSdkVersion = 21
9
- compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: "31")
10
- targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: "31")
11
- if (hasProperty('android.kotlinVersion')) {
7
+ buildToolsVersion = findProperty('android.buildToolsVersion') ?: '31.0.0'
8
+ minSdkVersion = Integer.parseInt(findProperty('android.minSdkVersion') ?: '21')
9
+ compileSdkVersion = Integer.parseInt(findProperty('android.compileSdkVersion') ?: '31')
10
+ targetSdkVersion = Integer.parseInt(findProperty('android.targetSdkVersion') ?: '31')
11
+ if (findProperty('android.kotlinVersion')) {
12
12
  kotlinVersion = findProperty('android.kotlinVersion')
13
13
  }
14
+ frescoVersion = findProperty('expo.frescoVersion') ?: '2.5.0'
14
15
 
15
- if (System.properties['os.arch'] == "aarch64") {
16
+ if (System.properties['os.arch'] == 'aarch64') {
16
17
  // For M1 Users we need to use the NDK 24 which added support for aarch64
17
- ndkVersion = "24.0.8215888"
18
+ ndkVersion = '24.0.8215888'
18
19
  } else {
19
20
  // Otherwise we default to the side-by-side NDK version from AGP.
20
- ndkVersion = "21.4.7075529"
21
+ ndkVersion = '21.4.7075529'
21
22
  }
22
23
  }
23
24
  repositories {
@@ -25,24 +26,32 @@ buildscript {
25
26
  mavenCentral()
26
27
  }
27
28
  dependencies {
28
- classpath("com.android.tools.build:gradle:7.0.4")
29
- classpath("com.facebook.react:react-native-gradle-plugin")
30
- classpath("de.undercouch:gradle-download-task:4.1.2")
29
+ classpath('com.android.tools.build:gradle:7.0.4')
30
+ classpath('com.facebook.react:react-native-gradle-plugin')
31
+ classpath('de.undercouch:gradle-download-task:4.1.2')
31
32
  // NOTE: Do not place your application dependencies here; they belong
32
33
  // in the individual module build.gradle files
33
34
  }
34
35
  }
35
36
 
37
+ def REACT_NATIVE_VERSION = new File(['node', '--print',"JSON.parse(require('fs').readFileSync(require.resolve('react-native/package.json'), 'utf-8')).version"].execute(null, rootDir).text.trim())
38
+
36
39
  allprojects {
40
+ configurations.all {
41
+ resolutionStrategy {
42
+ force "com.facebook.react:react-native:" + REACT_NATIVE_VERSION
43
+ }
44
+ }
45
+
37
46
  repositories {
38
47
  mavenLocal()
39
48
  maven {
40
49
  // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
41
- url(new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), "../android"))
50
+ url(new File(['node', '--print', "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim(), '../android'))
42
51
  }
43
52
  maven {
44
53
  // Android JSC is installed from npm
45
- url(new File(["node", "--print", "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), "../dist"))
54
+ url(new File(['node', '--print', "require.resolve('jsc-android/package.json')"].execute(null, rootDir).text.trim(), '../dist'))
46
55
  }
47
56
 
48
57
  google()
@@ -50,7 +59,7 @@ allprojects {
50
59
  // We don't want to fetch react-native from Maven Central as there are
51
60
  // older versions over there.
52
61
  content {
53
- excludeGroup "com.facebook.react"
62
+ excludeGroup 'com.facebook.react'
54
63
  }
55
64
  }
56
65
  maven { url 'https://www.jitpack.io' }
package/ios/Podfile CHANGED
@@ -3,7 +3,7 @@ require File.join(File.dirname(`node --print "require.resolve('react-native/pack
3
3
  require File.join(File.dirname(`node --print "require.resolve('@react-native-community/cli-platform-ios/package.json')"`), "native_modules")
4
4
 
5
5
  require 'json'
6
- podfile_properties = JSON.parse(File.read('./Podfile.properties.json')) rescue {}
6
+ podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}
7
7
 
8
8
  platform :ios, podfile_properties['ios.deploymentTarget'] || '12.0'
9
9
  install! 'cocoapods',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "expo-template-bare-minimum",
3
3
  "description": "This bare project template includes a minimal setup for using unimodules with React Native.",
4
- "version": "45.0.4",
4
+ "version": "45.0.6",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "start": "expo start --dev-client",