esoftplay 0.0.115-g → 0.0.115-j

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/bin/build.js CHANGED
@@ -146,6 +146,12 @@ if (fs.existsSync(packjson)) {
146
146
  "simulator": true
147
147
  }
148
148
  },
149
+ "preview_build": {
150
+ "distribution": "internal",
151
+ "android": {
152
+ "buildType": "apk"
153
+ }
154
+ },
149
155
  "production": {}
150
156
  },
151
157
  "submit": {
@@ -253,6 +259,7 @@ export default function App() {
253
259
  '@react-navigation/native-stack',
254
260
  '@react-navigation/native',
255
261
  '@react-navigation/stack',
262
+ '@shopify/flash-list',
256
263
  'buffer',
257
264
  'expo-application',
258
265
  'expo-camera',
package/bin/cli.js CHANGED
@@ -665,7 +665,19 @@ function build() {
665
665
  }
666
666
  },
667
667
  {
668
- name: "3. IOS (Production) - ipa",
668
+ name: "3. IOS (Preview) - Non Simulator",
669
+ cmd: "eas build --platform ios --profile preview_build",
670
+ pre: () => {
671
+ configAvailable(true)
672
+ devClientPos(appjson)
673
+ jsEng(appjson, true)
674
+ jsEng(appdebug, true)
675
+ jsEng(applive, true)
676
+ consoleSucces("Hermes diaktifkan")
677
+ }
678
+ },
679
+ {
680
+ name: "4. IOS (Production) - ipa",
669
681
  cmd: "eas build --platform ios --profile production",
670
682
  pre: () => {
671
683
  configAvailable(true)
@@ -677,7 +689,7 @@ function build() {
677
689
  }
678
690
  },
679
691
  {
680
- name: "4. Android (Development) - apk",
692
+ name: "5. Android (Development) - apk",
681
693
  cmd: "eas build --platform android --profile development",
682
694
  pre: () => {
683
695
  configAvailable(true)
@@ -689,7 +701,7 @@ function build() {
689
701
  }
690
702
  },
691
703
  {
692
- name: "5. Android (Preview) - apk",
704
+ name: "6. Android (Preview) - apk",
693
705
  cmd: "eas build --platform android --profile preview",
694
706
  pre: () => {
695
707
  configAvailable(true)
@@ -701,7 +713,7 @@ function build() {
701
713
  }
702
714
  },
703
715
  {
704
- name: "6. Android (Production) - aab",
716
+ name: "7. Android (Production) - aab",
705
717
  cmd: "eas build --platform android --profile production",
706
718
  pre: () => {
707
719
  configAvailable(true)
@@ -268,7 +268,6 @@ export default class ecurl {
268
268
  Pragma: "no-cache",
269
269
  ['Cache-Control']: "no-store",
270
270
  mode: "cors",
271
- _post: post
272
271
  }
273
272
  if (debug == 1)
274
273
  esp.log(this.url + this.uri, options)
@@ -335,7 +334,6 @@ export default class ecurl {
335
334
  ["Cache-Control"]: 'no-cache, no-store, must-revalidate',
336
335
  ["Expires"]: 0,
337
336
  mode: "cors",
338
- _post: post
339
337
  }
340
338
 
341
339
  //api_logger
@@ -418,6 +416,8 @@ export default class ecurl {
418
416
  delete this.fetchConf.options.Expires
419
417
  delete this.fetchConf.options.mode
420
418
  delete this.fetchConf.options["Cache-Control"]
419
+ delete this.fetchConf.options["Content-Type"]
420
+ delete this.fetchConf.options.token
421
421
  reportApiError(this.fetchConf, msg)
422
422
  LibProgress.hide()
423
423
  }
@@ -1,5 +1,6 @@
1
1
  // withHooks
2
2
 
3
+ import { FlashList } from "@shopify/flash-list";
3
4
  import { LibIcon, LibLoading, LibNavigation, LibObject, LibStyle, LibTextstyle, useSafeState } from 'esoftplay';
4
5
  import * as MediaLibrary from 'expo-media-library';
5
6
  import React, { useEffect } from 'react';
@@ -70,6 +71,8 @@ export default function m(props: LibImage_multiProps): any {
70
71
  setPhotos(LibObject.set(photos, item.selected == 1 ? 0 : 1)(index, "selected"))
71
72
  }} />
72
73
  )
74
+ const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
75
+ const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
73
76
 
74
77
  return (
75
78
  <View style={{ flex: 1, backgroundColor: "white" }} >
@@ -87,7 +90,7 @@ export default function m(props: LibImage_multiProps): any {
87
90
  </TouchableOpacity>
88
91
  </View>
89
92
  <View style={{ flex: 1 }} >
90
- <FlatList
93
+ <List
91
94
  data={photos}
92
95
  keyExtractor={(_: any, i) => _.uri}
93
96
  getItemLayout={getItemLayout}
@@ -1,11 +1,11 @@
1
1
  // noPage
2
2
 
3
+ import { FlashList } from "@shopify/flash-list";
3
4
  import { esp, LibComponent, LibCurl, LibListItemLayout, LibLoading, LibStyle, LibTextstyle } from 'esoftplay';
4
5
  import React from 'react';
5
6
  import isEqual from 'react-fast-compare';
6
7
  import { FlatList, View } from 'react-native';
7
8
 
8
-
9
9
  export interface LibInfiniteProps {
10
10
  url: string,
11
11
  post?: any,
@@ -172,13 +172,15 @@ export default class m extends LibComponent<LibInfiniteProps, LibInfiniteState>{
172
172
  render(): any {
173
173
  const { data, error } = this.state
174
174
  const { errorView, refreshEnabled } = this.props
175
+ const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
176
+ const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
175
177
  return (
176
178
  <View style={{ flex: 1 }} >
177
179
  {
178
180
  (!data || data.length) == 0 && !this.isStop ?
179
181
  this.props.LoadingView || <LibLoading />
180
182
  :
181
- <FlatList
183
+ <List
182
184
  ref={this.flatlist}
183
185
  data={data || []}
184
186
  onRefresh={((refreshEnabled == undefined) || refreshEnabled) && (() => this.loadData())}
@@ -1,6 +1,7 @@
1
1
  // noPage
2
2
 
3
3
 
4
+ import { FlashList } from "@shopify/flash-list";
4
5
  import { LibComponent } from "esoftplay";
5
6
  import React from "react";
6
7
  import { FlatList, View } from 'react-native';
@@ -75,9 +76,11 @@ export default class EList extends LibComponent<LibListProps, LibListState> {
75
76
  if (this.props.staticHeight)
76
77
  return ({ getItemLayout: (data, index) => this.props.staticHeight ? ({ length: this.props.staticHeight, offset: this.props.staticHeight, index: index }) : undefined })
77
78
  }
79
+ const AutoLayoutViewNativeComponent = require("@shopify/flash-list/src/native/auto-layout/AutoLayoutViewNativeComponent")
80
+ const List = !!AutoLayoutViewNativeComponent ? FlashList : FlatList
78
81
  return (
79
82
  <View ref={(e) => this.view = e} style={[{ flex: 1 }]} >
80
- <FlatList
83
+ <List
81
84
  ref={this.flatlist}
82
85
  data={this.props.data}
83
86
  keyExtractor={this.keyExtractor}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.115-g",
3
+ "version": "0.0.115-j",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",