-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show experience loading progress (#185)
fbshipit-source-id: f379be4
- Loading branch information
1 parent
3745c2a
commit e6a3f99
Showing
24 changed files
with
282 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
...xpoview/src/main/java/host/exp/exponent/experience/DevBundleDownloadProgressListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2015-present 650 Industries. All rights reserved. | ||
|
||
package host.exp.exponent.experience; | ||
|
||
import android.support.annotation.Nullable; | ||
|
||
public interface DevBundleDownloadProgressListener { | ||
void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...expoview/src/main/java/versioned/host/exp/exponent/ExponentDevBundleDownloadListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package versioned.host.exp.exponent; | ||
|
||
import com.facebook.react.devsupport.interfaces.DevBundleDownloadListener; | ||
|
||
import javax.annotation.Nullable; | ||
|
||
import host.exp.exponent.experience.DevBundleDownloadProgressListener; | ||
|
||
/** | ||
* Acts as a bridge between the versioned DevBundleDownloadListener and unversioned | ||
* DevBundleDownloadProgressListener | ||
*/ | ||
public class ExponentDevBundleDownloadListener implements DevBundleDownloadListener { | ||
private DevBundleDownloadProgressListener mListener; | ||
|
||
public ExponentDevBundleDownloadListener(DevBundleDownloadProgressListener listener) { | ||
mListener = listener; | ||
} | ||
|
||
@Override | ||
public void onSuccess() { | ||
|
||
} | ||
|
||
@Override | ||
public void onProgress(@Nullable String status, @Nullable Integer done, @Nullable Integer total) { | ||
mListener.onProgress(status, done, total); | ||
} | ||
|
||
@Override | ||
public void onFailure(Exception cause) { | ||
|
||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
android/expoview/src/main/res/drawable/loading_status_bar_background.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
<item | ||
android:left="-1px" | ||
android:right="-1px" | ||
android:bottom="-1px"> | ||
<shape | ||
android:shape="rectangle"> | ||
<stroke android:width="1px" android:color="#f3f3f3" /> | ||
<solid android:color="#fafafa" /> | ||
</shape> | ||
</item> | ||
</layer-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.