• Breaking News

    Sunday, November 22, 2020

    Android Dev - [CI/CD] Are there any reasons to run same checks on both local machines & CI side?

    Android Dev - [CI/CD] Are there any reasons to run same checks on both local machines & CI side?


    [CI/CD] Are there any reasons to run same checks on both local machines & CI side?

    Posted: 22 Nov 2020 07:11 AM PST

    Specifically ktLint in my case.
    Since we can force pre-commit hook (executing the ktLint format), are there any benefits of running the ktLint check on the pull request via GitHub actions ?
    Sounds like a waste of time to do it twice, but I might be missing something since CI/CD topic is new to me.

    Also listing common use cases of whole CI/CD benefits as I see it ( please add what might be missing) :
    1) distribute app from a certain branch to the internal test track / production track / whatever track on Google Play.
    2) running different types of analysis: code formatting ( ktLint ) , code complexity/smells (detekt), redundant transitive dependencies, etc.
    3) run tests

    submitted by /u/skyyoo_
    [link] [comments]

    How difficult is it to incorporate AdMod ads into your app and not have google suspend your account?

    Posted: 21 Nov 2020 11:29 PM PST

    I was reading about how to start trying to put ads into the app I'm making, but the wording that google uses about ad placement almost sounds like "your admob account will be suspended if you have ads anywhere in your app ever."

    This line in particular made me think that these rules are ridiculously easy to violate:

    "Ads should not be placed in areas where users will randomly click or place their fingers on the screen"

    How is that something that the developer can control? Am I just over-thinking it or is it really difficult to get your ads to be acceptable to google?

    submitted by /u/InsaneTeemo
    [link] [comments]

    Just copy Jetpack Compose Code from Android and use it for the Desktop

    Posted: 21 Nov 2020 10:56 AM PST

    15 — 21 November Android Newsletter

    Posted: 22 Nov 2020 01:54 AM PST

    Stay up to date with Android development, in this week's edition:
    ✉️ When to use a LiveData
    🤔 StateFlow and SharedFlow
    💡 How AppStartup works
    🏗️ Set up the Continuous Unit Testing
    and much more!

    Read it here 👉 https://vladsonkin.com/android-newsletter-21/
    What's your favorite one?

    🔥Featuring @psteiger_dev @maxirosson @SG5202 @arkann1985 @NikitBhandari @relizarov @Joklinztech @rockandnull @ivangarzab and many other great authors!

    💚 Subscribe and receive new editions directly to your email. Weekly, no spam, unsub anytime.
    Here is an example: https://mailchi.mp/223e5d5088d1/android-newsletter-21

    submitted by /u/vladsonkin_com
    [link] [comments]

    Can I advertise a unlimited version of my app within the playstore version of it?

    Posted: 22 Nov 2020 06:33 AM PST

    My app uses machine learning and only a limited version of it is compliant with Google PlayStore policy. However I offer a unlimited version of it through my website. Can I know integrate a pop-up in the play store version of my app to advertise this? Or will they suspend my app (again)?

    submitted by /u/tbb_
    [link] [comments]

    A commit from AndroidX that shows how FragmentActivity no longer uses onSaveInstanceState to save/restore the state of FragmentManager, and instead uses SavedStateRegistry.SavedStateProvider and OnContextAvailableListener

    Posted: 21 Nov 2020 01:27 PM PST

    Custom versions of system apps?

    Posted: 22 Nov 2020 03:32 AM PST

    Hey guys, I am sorry if this is not exactly the right sub for this but I think I will more likely get the answers I am looking for here than on r/android or others. Recently I've been getting fed up with changes being made to some of the default/system apps on my Pixel, like the file browser and camera app. They've changed some features and outright removed others and I'd like to have them back how they were before. I've never done any android development before but I'm well versed in C and Java and I was wondering if it was possible to create versions of these apps with the features I preferred before they were changed or removed. I'm not really sure where I would even begin with something like this, since they are "system" apps would I need an entire custom ROM? Or is there another easier way like just plain overwriting the files for them? I am pretty unfamiliar with this kind of stuff for android so any information is appreciated, thank you

    submitted by /u/hiisuuii
    [link] [comments]

    Jetpack Compose: ViewModels

    Posted: 21 Nov 2020 03:57 PM PST

    I Just Created a spinner with Android Material Design. Let me share my pains with you

    Posted: 21 Nov 2020 10:06 AM PST

    Automated tool to check malicious/vulnerable/suspicious code in Android Studio project?

    Posted: 21 Nov 2020 01:55 PM PST

    I would like to know if libraries that I use are safe.

    submitted by /u/Kakkurimme
    [link] [comments]

    What is "<layout" in Fragment XML

    Posted: 21 Nov 2020 03:42 PM PST

    Hello, when creating an android fragment with android studio the generated layout is `<FrameLayout `.

    The tutorial I'm going through uses view binding and it's needed to use `<layout` as the root layout.

    I'm confused because `<layout` is not an option in the xml editor panel.

    So my guess is that `<layout` is a custom layout that I imported?

    Thank you very much.

    Here are the imports in the gradle module file

     // Kotlin implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$version_kotlin" // Constraint Layout implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout" // Core implementation "androidx.core:core:$version_core" // Material Design implementation "com.google.android.material:material:$version_material" // Navigation implementation "android.arch.navigation:navigation-fragment-ktx:$version_navigation" implementation "android.arch.navigation:navigation-ui-ktx:$version_navigation" implementation 'androidx.legacy:legacy-support-v4:1.0.0' 
    submitted by /u/myOpinion23
    [link] [comments]

    Adding vulnerabilities to Android app

    Posted: 21 Nov 2020 11:54 AM PST

    Hey guys, I'm not sure if this question belongs here but I'm quite desperate :(.

    So I have a project in which I have to add 6 vulnerabilities to an application, and I've chosen an old Android app of mine.

    I have searched and searched for vulnerabilities ideas, and the most common are of course SQL injections, authentication issues, insecure HTTP, XSS (not sure if applicable to Android).

    Anyway, the thing is that my app uses Firebase for authentication and database, so the SQL injection and auth parts get kinda complicated. I also use SQLite for some local data like a list of alarms, I was thinking that I could try SQL injection for this part, but I don't see the logic... How would it benefit an attacker to get ahold of local data of his own user? I think SQLite injection only makes sense when you use it for authentication?

    Do you guys have any on top off your head vulnerabilities ideas I could implement? I'm really struggling to find some because I'm using Firebase and don't know how it could be attacked. :(

    Thanks!

    submitted by /u/imdelicateok
    [link] [comments]

    Looking for apps using Promon Sheild.

    Posted: 21 Nov 2020 11:33 AM PST

    This might not be the correct place ask but I have had no answers for this elsewhere. Does anyone know of any android apps using Promon Sheild??

    submitted by /u/tgod31
    [link] [comments]

    Android LiveData And Passive Views: 3 Simple Tips

    Posted: 21 Nov 2020 09:55 AM PST

    Where to learn Kotlin?

    Posted: 21 Nov 2020 11:58 AM PST

    Trying to get back into the game, and am deciding to go ahead and learn this language. Any code tutorials to learn it? I have a strong java background.

    submitted by /u/PchelpOnly
    [link] [comments]

    No comments:

    Post a Comment