All Projects → Guardsquare → appsweep-gradle

Guardsquare / appsweep-gradle

Licence: Apache-2.0 license
This Gradle plugin can be used to continuously integrate app scanning using AppSweep into your Android app build process

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to appsweep-gradle

Template
Stars: ✭ 214 (+613.33%)
Mutual labels:  android-development
Bubbble
Sample app showcases the MVP pattern and Robert Martin's Clean Architecture approach.
Stars: ✭ 226 (+653.33%)
Mutual labels:  android-development
Android Cleanarchitecture
This is a sample app that is part of a series of blog posts I have written about how to architect an android application using Uncle Bob's clean architecture approach.
Stars: ✭ 15,062 (+50106.67%)
Mutual labels:  android-development
Venom
A lightweight tool that simplifies testing of the process death scenario.
Stars: ✭ 218 (+626.67%)
Mutual labels:  android-development
Customfloatingactionbutton
This view is for replacement of standard Floating Action Button from Google Support Library. It is easy to use, customizable and you can also add text to button
Stars: ✭ 222 (+640%)
Mutual labels:  android-development
Awesome Android Complete Reference
Awesome Android references for everything like best practices, performance optimization, etc.
Stars: ✭ 2,701 (+8903.33%)
Mutual labels:  android-development
Keymapper
📱 An Android app that maps any keys to actions.
Stars: ✭ 207 (+590%)
Mutual labels:  android-development
wtm-udacity-scholars-nanodegree-resources
A List of Resources for Udacity Nanodegrees
Stars: ✭ 15 (-50%)
Mutual labels:  android-development
Languagetest
Changing the language on Android
Stars: ✭ 223 (+643.33%)
Mutual labels:  android-development
Nytimes App
🗽 A Simple Demonstration of the New York Times App 📱 using Jsoup web crawler with MVVM Architecture 🔥
Stars: ✭ 246 (+720%)
Mutual labels:  android-development
Bottomsheet
BottomSheet dialog library for Android
Stars: ✭ 219 (+630%)
Mutual labels:  android-development
Buildapks
Really quickly build APKs on handheld device (smartphone or tablet) in Amazon, Android, Chromebook and Windows📲 See https://buildapks.github.io/docsBuildAPKs/setup to start building APKs.
Stars: ✭ 218 (+626.67%)
Mutual labels:  android-development
Aboutlibraries
AboutLibraries automatically detects all dependencies of a project and collects their information including the license. Optionally visualising it via the provided ui components.
Stars: ✭ 2,777 (+9156.67%)
Mutual labels:  android-development
Simple Calendar
A simple calendar with events, customizable widgets and no ads.
Stars: ✭ 2,696 (+8886.67%)
Mutual labels:  android-development
FusedBulb
Location fetch library.
Stars: ✭ 22 (-26.67%)
Mutual labels:  android-development
K4kotlin
A sweet, small set of Kotlin functions to reduce your android boilerplate code
Stars: ✭ 210 (+600%)
Mutual labels:  android-development
Kotlin For Android Developers
Companion App for the book
Stars: ✭ 2,624 (+8646.67%)
Mutual labels:  android-development
AndroidEasySQL-Library
An Easier & Lazier approach to SQL database for Android
Stars: ✭ 28 (-6.67%)
Mutual labels:  android-development
awesome-android-libraries
😎 A curated list of awesome Android libraries
Stars: ✭ 135 (+350%)
Mutual labels:  android-development
Androidstandarddevelop
🌟 Best practices in Android develop(final).
Stars: ✭ 2,798 (+9226.67%)
Mutual labels:  android-development



AppSweep

Gradle Plugin for Continuous Integration of AppSweep App Testing.


Configuring the PluginInitiate the ScanFurther Configuration


Configuring the Plugin

The AppSweep plugin is published in the Gradle Public Repository, and can be easily added to your Android project by adding

plugins {
  // Keep your other plugins here
  id "com.guardsquare.appsweep" version "latest.release"
}

Important: Appsweep must run after Android and Dexguard plugins, by adding the Appsweep plugin below Android and Dexguard in the plugins section.

Note: the dynamic version latest.release requires at least Gradle 7. If you want to build with an older Gradle version, you need to specify a version number.

Next, you need to configure the plugin by providing an API key for your project.

🚀 You can create an API key in the API Keys section of your project settings.

This API key can then either be stored in the environment variable APPSWEEP_API_KEY, or by adding a appsweep block to your app/build.gradle.

Initiate the Scan

When the Gradle plugin is enabled and configured, some multiple uploadToAppSweep* Gradle tasks are registered.
More specifically, one task will be registered for each build variant of your app. For example, if you want to upload your release build variant, you can run:

gradle uploadToAppSweepRelease

in the root folder of your app.

Moreover, if you have obfuscation enabled for a specific build variant, the plugin will pick up the obfuscation mapping file and upload that alongside the app.

To see all available AppSweep tasks, use

gradle tasks --group=AppSweep

Further Configuration

In the appsweep-block in your app/build.gradle(.kts) file, you can make additional configurations.

API key

Instead of using the environment variable for the API key, you can also specify it in the appsweep-block:

appsweep {
    apiKey "gs_appsweep_SOME_API_KEY"
}

Tags

By default, the Gradle plugin will tag each uploaded build with the variant name (e.g. Debug or Release). Additionally it will add a Protected tag for builds uploaded using the uploadToAppSweep{variant}Protected tasks. You can override this behavior and set your own tags:

appsweep {
    apiKey "gs_appsweep_SOME_API_KEY"
    configurations {
        release {
            tags "Public"
        }
    }
}

This will tag all builds of the release variant with Public.

Commit hash

By default, the Gradle plugin will keep track of the current commit hash. This will then be displayed along with your build results so you can easily identify which version was analysed. By default the command git rev-parse HEAD is used to obtain this commit hash.

If you don't want to keep track of the commit hash, you can turn off this feature by specifying the addCommitHash option:

appsweep {
    apiKey "gs_appsweep_SOME_API_KEY"
    addCommitHash false
}

You can also use an alternative command to retrieve the commit hash by overriding the commitHashCommand option:

appsweep {
    apiKey "gs_appsweep_SOME_API_KEY"
    commitHashCommand "hg id -i"
}

The output of the command is attached to the newly created build, and will be shown in the results to identify that specific commit.

Task caching

By default, the upload tasks are cached and won't run if the app is unchanged.

If this is not the desired behavior you can disable the caching and guarantee the creation of a new scan everytime an upload task is run (Android Studio might show a warning in this case, but it can be ignored):

appsweep {
    apiKey "gs_appsweep_SOME_API_KEY"
    cacheTask false
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].