GlanceReader icon indicating copy to clipboard operation
GlanceReader copied to clipboard

Build the app

Open remil19 opened this issue 11 years ago • 33 comments

Hi, this app is pretty exciting and i would like to test but cannot build it in my computer. Could you please add a direct link to download the apk ?

remil19 avatar Mar 05 '14 12:03 remil19

Let's come up with an app title that can't be claimed as infringing on Spritz Inc. so we can publish on Google Play...

OnlyInAmerica avatar Mar 06 '14 04:03 OnlyInAmerica

I was not speaking about publishing the app, just building it like it is said in the readme and push that into gitHub so I could download it and beta test it.

remil19 avatar Mar 06 '14 07:03 remil19

Yeha, same here, pre-compiled 'd be great :)

466 avatar Mar 06 '14 11:03 466

Ditto! Unless someone can point a novice to instructions on how to build this in windows. I keep getting this error:

  • What went wrong:

A problem occurred evaluating project ':app'.

SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.

Stefanough avatar Mar 06 '14 20:03 Stefanough

Are you using Android Studio?

keelanc avatar Mar 06 '14 20:03 keelanc

I'm using... Android Developer Tools? But I tried building it in the command prompt by navigating to the directory where the openspritz files are and using gradlew assemble.

Stefanough avatar Mar 06 '14 20:03 Stefanough

I'll provide a pre-built apk and update the README with more thorough instructions very soon.

In the meanwhile: the easiest way to make gradle aware of your Android SDK location is with the ANDROID_HOME environmental variable. You should also have the Android SDK /tools and /platform-tools directories added to your PATH if you're going to be developing or interacting with your android device from the command line.

On Mac OS X: Type the following in Terminal:

export ANDROID_HOME=/<installation location>/android-sdk-macosx
export PATH=${PATH}:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

On Windows: Type the following into the Command Prompt:

set ANDROID_HOME=C:\<installation location>\android-sdk-windows
set PATH=%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools

OnlyInAmerica avatar Mar 06 '14 20:03 OnlyInAmerica

Pre-built .apk now bundled with the repo: https://github.com/OnlyInAmerica/OpenSpritz-Android/raw/master/app-release-signed.apk

OnlyInAmerica avatar Mar 06 '14 20:03 OnlyInAmerica

I think it would be great if this could be in the Play Store. How about "Wordgun" as an alternate name?

jlund avatar Mar 07 '14 02:03 jlund

Wordgun is nice, what about, "Nitro Books"? Getting away from the "Spritz" in the name would be nice.

asperdx avatar Mar 07 '14 03:03 asperdx

OsmoSys... Playing on the word 'Osmosis' (the process of gradual or unconscious assimilation of ideas, knowledge, etc.) and 'system'.

Or perhaps 'Sub-C Reader' (subconscious).

Or maybe PassiveReader.

OsmoSys seems the catchiest though.

AWretchSavedByGrace avatar Mar 07 '14 10:03 AWretchSavedByGrace

Word Stream! Squirtz! Saccades-be-gone! Suck It Saccades! On Mar 7, 2014 5:02 AM, "AWretchSavedByGrace" [email protected] wrote:

OsmoSys... Playing on the word 'Osmosis' (the process of gradual or unconscious assimilation of ideas, knowledge, etc.) and 'system'.

Or perhaps 'Sub-C Reader' (subconscious).

Or maybe PassiveReader.

OsmoSys seems the catchiest though.

Reply to this email directly or view it on GitHubhttps://github.com/OnlyInAmerica/OpenSpritz-Android/issues/8#issuecomment-37010541 .

keelanc avatar Mar 07 '14 11:03 keelanc

Quantum Reader?

asperdx avatar Mar 07 '14 13:03 asperdx

cReader as like c in light speed?

asperdx avatar Mar 07 '14 16:03 asperdx

I would also appreciate to push here updated apk in the future. Don't really want to set up Android Dev environment ;) But yeah, GPlay would be nice!

IniTW8X avatar Mar 09 '14 18:03 IniTW8X

I'm sort of leaning toward something simple like Glance or Gaze...

I think we're in a pretty good spot to release on Google Play within the next few days...

OnlyInAmerica avatar Mar 19 '14 04:03 OnlyInAmerica

I like Glance

asperdx avatar Mar 19 '14 04:03 asperdx

I'm still trying to build this app, just for my own education and I keep getting stuck here

:app:processDebugResources FAILED          

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> Error: A library uses the same package as this project

Tried Googling but found no help. Let me know if I should ask this somewhere else.

Also, how about influx?

Stefanough avatar Mar 19 '14 04:03 Stefanough

@Stefanough this seems to be a check introduced in the latest Android gradle plugin. If you pull the latest code I've changed the lib and app namespaces to correct this. Let me know if that doesn't resolve this.

OnlyInAmerica avatar Mar 19 '14 06:03 OnlyInAmerica

Wow, the system works! Thanks.

I can only get the app-debug-unaligned.apk to install and the the app-release-unsigned.apk.

Is that normal?

Stefanough avatar Mar 20 '14 00:03 Stefanough

@OnlyInAmerica "Galance" already exist on google play https://play.google.com/store/apps/details?id=com.danvelazco.glance

Sure you know "A faster Reader" joint an epub reader + this concept (share a link and "Spritz" the text) would be excelent!! https://play.google.com/store/apps/details?id=com.basetis.blinkingread.blinkingread

OpenSpritz-Android certainly have a better rhythm of reading congrats for your excelent job

fabianhtml avatar Mar 20 '14 02:03 fabianhtml

Why not "Don't blink"?

remil19 avatar Mar 21 '14 20:03 remil19

Sounds like a game then On Mar 21, 2014 3:47 PM, "Rémi Lapeyre" [email protected] wrote:

Why not "Don't blink"?

Reply to this email directly or view it on GitHubhttps://github.com/OnlyInAmerica/OpenSpritz-Android/issues/8#issuecomment-38322375 .

asperdx avatar Mar 21 '14 20:03 asperdx

the repo: https://raw.githubusercontent.com/OnlyInAmerica/OpenSpritz-Android/master/app-release-signed.apk

don't show anything

fabianhtml avatar Mar 24 '14 17:03 fabianhtml

I'm no longer bundling the .apks in the repo to avoid bloating its filesize. Building the .apk should be relatively simple per the instructions. I'm also shooting to release on Google Play within the week.

OnlyInAmerica avatar Mar 24 '14 19:03 OnlyInAmerica

Hello all! I'm trying to build the app, just to try it. I have set up the Android SDK and made all the adjustments necessary to build it. Now, it just doesn't want to build. It throws a lot of error related to org.apache.log4j.net.* and this is how it finish:

Warning: there were 90 unresolved references to program class members.
         Your input classes appear to be inconsistent.
         You may need to recompile the code.
         (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember)
:app:proguardRelease FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:proguardRelease'.
> java.io.IOException: Please correct the above warnings first.

Sincerely, i wanted to play with the app since it looks promising. Any idea what's wrong? Thanks

hcasquet avatar Mar 27 '14 18:03 hcasquet

From your command line run ./gradle assembleDebug. Assembling the release apk will only work if you set up your signing variables in gradle.properties. Also runProguard should be set to false until I add all the necessary rules. On Mar 27, 2014 11:21 AM, "hcasquet" [email protected] wrote:

Hello all! I'm trying to build the app, just to try it. I have set up the Android SDK and made all the adjustments necessary to build it. Now, it just doesn't want to build. It throws a lot of error related to org.apache.log4j.net.* and this is how it finish:

Warning: there were 90 unresolved references to program class members. Your input classes appear to be inconsistent. You may need to recompile the code. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember) :app:proguardRelease FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:proguardRelease'.

    java.io.IOException: Please correct the above warnings first.

Sincerely, i wanted to play with the app since it looks promising. Any idea what's wrong? Thanks

Reply to this email directly or view it on GitHubhttps://github.com/OnlyInAmerica/OpenSpritz-Android/issues/8#issuecomment-38841695 .

OnlyInAmerica avatar Mar 27 '14 18:03 OnlyInAmerica

Gah that's ./gradlew assembleDebug On Mar 27, 2014 11:31 AM, "David Brodsky" [email protected] wrote:

From your command line run ./gradle assembleDebug. Assembling the release apk will only work if you set up your signing variables in gradle.properties. Also runProguard should be set to false until I add all the necessary rules. On Mar 27, 2014 11:21 AM, "hcasquet" [email protected] wrote:

Hello all! I'm trying to build the app, just to try it. I have set up the Android SDK and made all the adjustments necessary to build it. Now, it just doesn't want to build. It throws a lot of error related to org.apache.log4j.net.* and this is how it finish:

Warning: there were 90 unresolved references to program class members. Your input classes appear to be inconsistent. You may need to recompile the code. (http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember) :app:proguardRelease FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:proguardRelease'.

    java.io.IOException: Please correct the above warnings first.

Sincerely, i wanted to play with the app since it looks promising. Any idea what's wrong? Thanks

Reply to this email directly or view it on GitHubhttps://github.com/OnlyInAmerica/OpenSpritz-Android/issues/8#issuecomment-38841695 .

OnlyInAmerica avatar Mar 27 '14 18:03 OnlyInAmerica

Much appreciated, thank you sir. Now that i think of, i didn't think of that, now i think i'm dumber by the moment xD Ok, that aside, the app have been built, i will play with it for a while.

hcasquet avatar Mar 28 '14 12:03 hcasquet

finally got it to compile. Some notes:

"ANDROID_HOME" error -kept getting it even though I had already mapped it. Ended up creating "local.properties" file in folder with sdk.dir=(sdk dir location). This fixed the issue.

"Could not resolve com.android.support:appcompat-v7" error -in Android SDK manager, update to the latest "Android Support Repository" and "Android Support Library"

"failed to find Build Tools revision 19.0.2" error -install build tools 19.0.2 from Android SDK manager. I had 19.0.1 and 19.0.3 installed but .2 was missing.

hope this helps those of you having issues compiling!

abraham09 avatar Mar 31 '14 22:03 abraham09