@@ -52,19 +52,15 @@ class AssetSourceResolver {
52
52
serverUrl : ?string ;
53
53
// where the jsbundle is being run from
54
54
jsbundleUrl : ?string ;
55
- // where the embedded bundle in the app is stored
56
- embeddedBundleUrl : ?string ;
57
55
// the asset to resolve
58
56
asset : PackagerAsset ;
59
57
60
58
constructor ( serverUrl : ?string ,
61
59
jsbundleUrl : ?string ,
62
- embeddedBundleUrl : ?string ,
63
60
asset : PackagerAsset
64
61
) {
65
62
this . serverUrl = serverUrl ;
66
63
this . jsbundleUrl = jsbundleUrl ;
67
- this . embeddedBundleUrl = embeddedBundleUrl ;
68
64
this . asset = asset ;
69
65
}
70
66
@@ -76,10 +72,6 @@ class AssetSourceResolver {
76
72
return ! ! ( this . jsbundleUrl && this . jsbundleUrl . startsWith ( 'file://' ) ) ;
77
73
}
78
74
79
- canLoadFromEmbeddedBundledLocation ( ) : boolean {
80
- return ! ! this . embeddedBundleUrl ;
81
- }
82
-
83
75
defaultAsset ( ) : ResolvedAssetSource {
84
76
if ( this . isLoadedFromServer ( ) ) {
85
77
return this . assetServerURL ( ) ;
@@ -123,15 +115,6 @@ class AssetSourceResolver {
123
115
return this . fromSource ( path + getScaledAssetPath ( this . asset ) ) ;
124
116
}
125
117
126
- /**
127
- * Resolves to the asset that was bundled with the app, with a scaled asset filename
128
- * E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png'
129
- */
130
- scaledAssetURLInEmbeddedBundleUrl ( ) : ResolvedAssetSource {
131
- const path = this . embeddedBundleUrl || 'file://' ;
132
- return this . fromSource ( path + getScaledAssetPath ( this . asset ) ) ;
133
- }
134
-
135
118
/**
136
119
* The default location of assets bundled with the app, located by
137
120
* resource identifier
0 commit comments