From bd77dcc3a792b03a6769d570fbd68bb9b849b8eb Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Mon, 1 Sep 2014 10:18:37 -0400 Subject: [PATCH] Initial gulp build system --- .gitignore | 2 ++ app/src/main/assets/book.html | 2 +- app/src/main/assets/dist/book-bundle.js | 4 +++ app/src/main/assets/dist/bundle.js | 4 +++ app/src/main/assets/gulpfile.js | 30 ++++++++++++++++++ app/src/main/assets/src/book.coffee | 1 + .../activity/viewer/BookFragment.java | 7 ++++ .../osistohtml/OsisToHtmlSaxHandler.java | 21 ++---------- .../main/res/drawable-xxxhdpi/ic_launcher.png | Bin 0 -> 7006 bytes 9 files changed, 51 insertions(+), 20 deletions(-) create mode 100755 app/src/main/assets/dist/book-bundle.js create mode 100755 app/src/main/assets/dist/bundle.js create mode 100644 app/src/main/assets/gulpfile.js create mode 100644 app/src/main/assets/src/book.coffee create mode 100644 app/src/main/res/drawable-xxxhdpi/ic_launcher.png diff --git a/.gitignore b/.gitignore index 79859d1..9859fcb 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,5 @@ .DS_Store /build *.iml +/node_modules +npm-debug.log diff --git a/app/src/main/assets/book.html b/app/src/main/assets/book.html index 75f4951..4c38158 100644 --- a/app/src/main/assets/book.html +++ b/app/src/main/assets/book.html @@ -1,6 +1,6 @@ -
+
\n"; - String styleSheetTag = ""; - String extraStyleSheetTag = ""; - if (parameters.getExtraStylesheet() != null) { - extraStyleSheetTag = ""; - } - write(" " - + "" - + styleSheetTag + extraStyleSheetTag + "\n" - + jsTag - + "" - + "" - + ""); - // force rtl for rtl languages - rtl support on Android is poor but // forcing it seems to help occasionally + write("

"); if (!parameters.isLeftToRight()) { write(""); } @@ -150,9 +135,7 @@ public class OsisToHtmlSaxHandler extends OsisSaxHandler { if (!parameters.isLeftToRight()) { write(""); } - // add padding at bottom to allow last verse to scroll to top of page - // and become current verse - write(""); + write("

"); } /* diff --git a/app/src/main/res/drawable-xxxhdpi/ic_launcher.png b/app/src/main/res/drawable-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000000000000000000000000000000000000..140c425a6389504630d5a0545bf617a2f8f1b131 GIT binary patch literal 7006 zcmb7pbySpJ)b7j3NY@A`APu5)3la`BfJiAR(jna`HHxHzgaXna(n?DsAT1@`E#;7s zg5W*#`_}#A-v7R}rq(~r=xd++Dj`$TGKD3cM>6GIS0rmCX&2zdF0b9l-!Wc7p63qveK z*orO?Vu|#??^>;8C$MJggqx2Fp{#Gx!(XywIWBkdzb5oN**$OTey07yb7V|w?m~8b zHn{57___GetWoc0e>m(V3*rCjB~Jzkz9pvlnpi@KX7ME(xvmS<}ZN1rwo z^*z;1K?Da=2mZ143D3q2@IOB8Hm$&o-~}U8n5Ex);Qhj4wVyu4^z}XD;Nn_Y?szTX z_nU*9Sr&6~e!|YpP2AwUE${0q;k`BaA|irtYrcuW|752lTOpj1f#EfeehCX79~lL+ zYD7m=vScfx~*$i-Zv>joMg0Ab*WO)gRinbFl2cSP2)v)pK zydFvW8JYz9yT8+5yX;mor8|1D8>}KCx+RQ9N=7CG)b=Hd5RlOFqKk`pX6NRXc6P`q zC@5-cYZq5y?sv}Cc?da-^FB-#hSSp0-jMbcJUl$S#~JeVtL*ITEF~jj^!i|?M@lB| z-Xka*nYADDm!rSGc6a&Psroy<7BG6XB&V>DC^t8^yQil$S1qY5_+L=K$()Ztl`Yk$ z&!4lwtd*qR-rlvYOR#nep?tpwAvG|oH*_Iuzum3Z1{{h8Gn9%-_;=y4ov*J8xULT{ z-n<`lGbkv?)zkCU*RNl7h@PM9kh!?H{QUXTm0rz%PYjI#8=rKBN_a6;i7SEon15dZ+X8%usUKU}eT5_sg|i-v|L6iGoI-B*bAqNIFw%qGjsF*m+cRk?2bU>$hVYJ|7bxPMg#NP1_= z7F=BT3?SASVqmcMO(ugGD*jl$Xj%x;NWT~QHSk<`xvIQePDu&Qb#$PIUe+y+mGu=| zS=ec)MGnvQsV)aBTRZa)UnRFX_GMzK-QD`M4}*|qW-Q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