Home
last modified time | relevance | path

Searched refs:resources (Results 1 – 25 of 275) sorted by relevance

1234567891011

/expo/packages/@expo/config-plugins/src/android/
H A DStrings.ts15 if (!stringFileContentsJSON?.resources?.string) {
16 if (!stringFileContentsJSON.resources || typeof stringFileContentsJSON.resources === 'string') {
18 stringFileContentsJSON.resources = {};
20 stringFileContentsJSON.resources.string = itemToAdd;
25 const stringNameExists = stringFileContentsJSON.resources.string.findIndex(
30 stringFileContentsJSON.resources.string[stringNameExists] = newItem;
32 stringFileContentsJSON.resources.string =
33 stringFileContentsJSON.resources.string.concat(newItem);
40 if (stringFileContentsJSON?.resources?.string) {
41 const stringNameExists = stringFileContentsJSON.resources.string.findIndex(
[all …]
H A DColors.ts19 if (colorFileContentsJSON.resources?.color) {
20 const colorNameExists = colorFileContentsJSON.resources.color.filter(
26 colorFileContentsJSON.resources.color.push(itemToAdd);
29 if (!colorFileContentsJSON.resources || typeof colorFileContentsJSON.resources === 'string') {
31 colorFileContentsJSON.resources = {};
33 colorFileContentsJSON.resources.color = [itemToAdd];
39 if (contents.resources?.color) {
43 contents.resources.color.splice(index, 1);
84 if (!xml?.resources?.color) {
88 return getResourceItemsAsObject(xml.resources.color);
[all …]
H A DResources.ts12 resources: {
57 if (!xml.resources) {
58 xml.resources = {};
70 xml = { resources: {} };
72 if (!xml.resources) {
73 xml.resources = {};
/expo/packages/@expo/config-plugins/build/android/
H A DStrings.js26 …tentsJSON !== void 0 && (_stringFileContentsJS = stringFileContentsJSON.resources) !== null && _st…
27 if (!stringFileContentsJSON.resources || typeof stringFileContentsJSON.resources === 'string') {
29 stringFileContentsJSON.resources = {};
31 stringFileContentsJSON.resources.string = itemToAdd;
35 …const stringNameExists = stringFileContentsJSON.resources.string.findIndex(e => e.$.name === newIt…
38 stringFileContentsJSON.resources.string[stringNameExists] = newItem;
40 … stringFileContentsJSON.resources.string = stringFileContentsJSON.resources.string.concat(newItem);
47 …entsJSON !== void 0 && (_stringFileContentsJS2 = stringFileContentsJSON.resources) !== null && _st…
48 …const stringNameExists = stringFileContentsJSON.resources.string.findIndex(e => e.$.name === named…
51 stringFileContentsJSON.resources.string.splice(stringNameExists, 1);
H A DColors.js36 …if ((_colorFileContentsJSO = colorFileContentsJSON.resources) !== null && _colorFileContentsJSO !=…
37 …const colorNameExists = colorFileContentsJSON.resources.color.filter(e => e.$.name === itemToAdd.$…
41 colorFileContentsJSON.resources.color.push(itemToAdd);
44 if (!colorFileContentsJSON.resources || typeof colorFileContentsJSON.resources === 'string') {
46 colorFileContentsJSON.resources = {};
48 colorFileContentsJSON.resources.color = [itemToAdd];
54 …if ((_contents$resources = contents.resources) !== null && _contents$resources !== void 0 && _cont…
55 const index = contents.resources.color.findIndex(e => e.$.name === named);
58 contents.resources.color.splice(index, 1);
93 return (0, _Resources().getResourceItemsAsObject)(xml.resources.color);
[all …]
H A DStrings.js.map1resources","string","newItem","stringNameExists","findIndex","e","$","concat","removeStringItem","…
H A DColors.js.map1resources","color","colorNameExists","filter","e","$","_","push","removeColorItem","named","conten…
H A DResources.js37 if (!xml.resources) {
38 xml.resources = {};
51 resources: {} property
54 if (!xml.resources) {
55 xml.resources = {};
/expo/packages/expo-system-ui/plugin/src/__tests__/
H A DwithAndroidUserInterfaceStyle-test.ts32 { resources: {} },
42 expect(setStrings({ resources: {} }, getAllProps())).toStrictEqual({
43 resources: {
61 resources: {
68 resources: {
75 const strings = setStrings({ resources: {} }, getAllProps());
78 resources: {
85 const strings = setStrings({ resources: {} }, { userInterfaceStyle: 'dark' });
87 expect(strings.resources.string).toStrictEqual([
99 setStrings(strings, resolveProps({ userInterfaceStyle: 'light' })).resources.string
/expo/packages/@expo/config-plugins/src/android/__tests__/
H A DStrings-test.ts7 resources: {},
10 resources: { string: [{ $: { name: 'foo' }, _: 'foo' }] },
21 resources: {},
25 resources: {
38 resources: { string: [{ $: { name: 'foo' }, _: 'foo' }] },
42 resources: { string: [{ $: { name: 'foo', translatable: 'false' }, _: 'bar' }] },
H A DStatusBar-test.ts35 const styles = setStatusBarStyles(config, { resources: {} });
36 const colors = setStatusBarColors(config, { resources: {} });
42 expect(styles.resources.style![0].item[0].$['tools:targetApi']).toBe('23');
53 const styles = setStatusBarStyles(config, { resources: {} });
54 const colors = setStatusBarColors(config, { resources: {} });
59 expect(colors.resources).toStrictEqual({});
H A DColors-test.ts35 expect(colors).toStrictEqual({ resources: {} });
42 expect(colors).toStrictEqual({ resources: { color: [colorItemToAdd] } });
48 expect(colors.resources.color[0]._).toBe('#000000');
50 expect(colors.resources.color.length).toBe(1);
54 expect(colors).toStrictEqual({ resources: { color: [] } });
H A DResources-test.ts35 expect(await readResourcesXMLAsync({ path })).toStrictEqual({ resources: {} });
42 expect(await readResourcesXMLAsync({ path })).toStrictEqual({ resources: {} });
67 ).toStrictEqual((styles.resources as any).style[0]);
/expo/packages/expo-navigation-bar/plugin/src/__tests__/
H A DwithNavigationBar-test.ts109 setStrings({ resources: {} }, resolveProps({}, { borderColor: '-bacon-' }))
114 expect(setStrings({ resources: {} }, getAllProps())).toStrictEqual({
115 resources: {
161 resources: {
168 resources: {
175 const strings = setStrings({ resources: {} }, getAllProps());
178 resources: {
185 const strings = setStrings({ resources: {} }, { borderColor: '#4630EB' });
187 expect(strings.resources.string).toStrictEqual([
237 { resources: {} }
[all …]
/expo/packages/@expo/prebuild-config/src/plugins/unversioned/expo-system-ui/__tests__/
H A DwithAndroidUserInterfaceStyle-test.ts27 modResults: { resources: {} },
35 expect(modResults).toStrictEqual({ resources: {} });
47 modResults: { resources: {} },
55 expect(modResults).toStrictEqual({ resources: {} });
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/api/components/maps/
H A DImageReader.java35 private final Resources resources; field in ImageReader
72 public ImageReader(Context context, Resources resources, ImageReadable imp) { in ImageReader() argument
74 this.resources = resources; in ImageReader()
76 logoHolder = DraweeHolder.create(createDraweeHeirarchy(resources), context); in ImageReader()
80 private GenericDraweeHierarchy createDraweeHeirarchy(Resources resources){ in createDraweeHeirarchy() argument
81 return new GenericDraweeHierarchyBuilder(resources) in createDraweeHeirarchy()
108 imp.setIconBitmap(BitmapFactory.decodeResource(this.resources, getDrawableResourceByName in setImage()
117 return this.resources.getIdentifier( in getDrawableResourceByName()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/api/components/maps/
H A DImageReader.java35 private final Resources resources; field in ImageReader
72 public ImageReader(Context context, Resources resources, ImageReadable imp) { in ImageReader() argument
74 this.resources = resources; in ImageReader()
76 logoHolder = DraweeHolder.create(createDraweeHeirarchy(resources), context); in ImageReader()
80 private GenericDraweeHierarchy createDraweeHeirarchy(Resources resources){ in createDraweeHeirarchy() argument
81 return new GenericDraweeHierarchyBuilder(resources) in createDraweeHeirarchy()
108 imp.setIconBitmap(BitmapFactory.decodeResource(this.resources, getDrawableResourceByName in setImage()
117 return this.resources.getIdentifier( in getDrawableResourceByName()
/expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/api/components/maps/
H A DImageReader.java35 private final Resources resources; field in ImageReader
72 public ImageReader(Context context, Resources resources, ImageReadable imp) { in ImageReader() argument
74 this.resources = resources; in ImageReader()
76 logoHolder = DraweeHolder.create(createDraweeHeirarchy(resources), context); in ImageReader()
80 private GenericDraweeHierarchy createDraweeHeirarchy(Resources resources){ in createDraweeHeirarchy() argument
81 return new GenericDraweeHierarchyBuilder(resources) in createDraweeHeirarchy()
108 imp.setIconBitmap(BitmapFactory.decodeResource(this.resources, getDrawableResourceByName in setImage()
117 return this.resources.getIdentifier( in getDrawableResourceByName()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/components/maps/
H A DImageReader.java35 private final Resources resources; field in ImageReader
72 public ImageReader(Context context, Resources resources, ImageReadable imp) { in ImageReader() argument
74 this.resources = resources; in ImageReader()
76 logoHolder = DraweeHolder.create(createDraweeHeirarchy(resources), context); in ImageReader()
80 private GenericDraweeHierarchy createDraweeHeirarchy(Resources resources){ in createDraweeHeirarchy() argument
81 return new GenericDraweeHierarchyBuilder(resources) in createDraweeHeirarchy()
108 imp.setIconBitmap(BitmapFactory.decodeResource(this.resources, getDrawableResourceByName in setImage()
117 return this.resources.getIdentifier( in getDrawableResourceByName()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/host/exp/exponent/modules/universal/
H A DConstantsBinding.kt80 val resources = context.resources in convertPixelsToDp() constant
81 val metrics = resources.displayMetrics in convertPixelsToDp()
89 val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
91 context.resources.getDimensionPixelSize(resourceId).toFloat(), context
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/host/exp/exponent/modules/universal/
H A DConstantsBinding.kt80 val resources = context.resources in convertPixelsToDp() constant
81 val metrics = resources.displayMetrics in convertPixelsToDp()
89 val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
91 context.resources.getDimensionPixelSize(resourceId).toFloat(), context
/expo/android/expoview/src/main/java/versioned/host/exp/exponent/modules/universal/
H A DConstantsBinding.kt80 val resources = context.resources in convertPixelsToDp() constant
81 val metrics = resources.displayMetrics in convertPixelsToDp()
89 val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
91 context.resources.getDimensionPixelSize(resourceId).toFloat(), context
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/universal/
H A DConstantsBinding.kt80 val resources = context.resources in convertPixelsToDp() constant
81 val metrics = resources.displayMetrics in convertPixelsToDp()
89 val resourceId = context.resources.getIdentifier("status_bar_height", "dimen", "android")
91 context.resources.getDimensionPixelSize(resourceId).toFloat(), context
/expo/packages/@expo/prebuild-config/src/plugins/unversioned/expo-splash-screen/__tests__/
H A DwithAndroidSplashStyles-test.ts40 resources: {
52 resources: {
80 resources: {},
H A DwithAndroidSplashStrings-test.ts7 const results = setSplashStrings({ resources: {} }, 'cover', false);
18 { resources: { string: [{ $: { name: 'expo_splash_screen_resize_mode' }, _: 'contain' }] } },

1234567891011