feat: Add Pseudo Logcat Reader#257
Merged
hasrat-ali merged 6 commits intoSketchware-Pro:mainfrom May 27, 2022
khaled-0:por-LogCat
Merged
feat: Add Pseudo Logcat Reader#257hasrat-ali merged 6 commits intoSketchware-Pro:mainfrom khaled-0:por-LogCat
hasrat-ali merged 6 commits intoSketchware-Pro:mainfrom
khaled-0:por-LogCat
Conversation
j-px
previously requested changes
Oct 14, 2021
Contributor
|
Why's this PR marked as WIP btw? |
Contributor
Author
Was writing description. Its open now |
Contributor
Author
|
i haven't checked the updated DesignDrawer while resolving conflicts. please kindly test that out when you can, should work tho |
Contributor
Author
|
These commits are a mess ngl 😔 |
renamed and removed some ids feat: Adding Logcat Reader Support LogReaderActivity receives and shows Log broadcasts, processes and shows them in a recyclerview. Added configChanges in Manifest for Different Screen sizes
Changed To ``ScrollToPosition`` instead of ``..WithOffset`` Remove All XML References and Make Views Programmatically Veri easy Update LogReaderActivity.java Update LogReaderActivity.java Added Layout Tags And Fixed LayoutParams fix por moments
Add more stuffs for creating project with logger enabled Update yq.java
For Quick Access :thenking:
from ``RECEIVE_NUB_LOGS`` to com.sketchware.remod.ACTION_NEW_DEBUG_LOG Update LogReaderActivity.java followup of previous commit fix compilation error caused by R
Contributor
Author
|
cleaned most of messy commits as much as I could. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a full fledged
Logcat Readerand Functionality for All(Hopefully) Log Related Stuffs in The Projects Made With.To enable logcat support in your apps, enable Logcat Option from build settings.
Make sure you don't keep it enabled in the final builds unless you know what you're doing
Function Wise (if Logcat Enabled)
Made projects will include a class
SketchLogger.javaThis Class Uses
java.lang.Processto execute and read each and every (hopefully) logs from the app itself. Then using a BuffereredReader, it Broadcasts the logs one by one with an intent filterRECEIVE_NUB_LOGSwhich than gets picked by Sketchware.Also in order for that
SketchLogger.javaclass to work one must callSketchLogger.startLogging(Context)from somewhere in the app. It's usually done automatically inSketchApplication.javabut if for some reason user doesn't use the default application class they must use that method in order for the logcat to work.More info can be found in the class itself*
As for Reading The broadcast , Open the
Logcat Readerfrom Design Menu in Sketchware Pro before opening the application. So you won't miss out the logs of app startup.Finally. I don't know what else to write anymore.🙏🙏