-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #126 from NordicPlayground/migration/agp2.6
Migration Nordic Gradle Plugins 2.6.1 and new documentation
- Loading branch information
Showing
351 changed files
with
43,643 additions
and
489 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,25 @@ | ||
# Nordic Common Libraries for Android | ||
A libraries with Nordic's common code for Android apps. | ||
|
||
## Theme | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:theme:<version>' | ||
``` | ||
|
||
### Content | ||
The library contains a few features which are necessary for theming Nordic Semiconductor apps: | ||
|
||
* Color palette adopted to the new Material You | ||
* Typography | ||
* Nordic theme for dark and light mode | ||
* Abstract `NordicActivity` class which contain implementations for Nordic's splash screen animation. | ||
* `WizardStepComponent` for wizard-based app flow. | ||
* `CircularIcon` an icon with circular shape. | ||
* Other common views available for different projects. | ||
|
||
## Permission | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:permission:<version>' | ||
``` | ||
|
||
### Content | ||
Classes and views related to managing permissions, including Bluetooth and Internet permissions. | ||
|
||
## Navigation | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:navigation:<version>' | ||
``` | ||
|
||
### Content | ||
Common navigation components for the app. | ||
|
||
## UI Scanner | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:uiscanner:<version>' | ||
``` | ||
A libraries with Nordic's common code for Android apps. | ||
|
||
### Content | ||
Common Bluetooth LE scanner screen. | ||
## Documentation | ||
|
||
## UI Logger | ||
The latest documentation can be found [here](https://nordicplayground.github.io/KAndroid-Common-Libraries/html/index.html). | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:uilogger:<version>' | ||
``` | ||
## Usage | ||
|
||
### Content | ||
Common classes related with logging to nRF Logger app. | ||
To use this library, add the following to your `build.gradle` file: | ||
|
||
## Analytics | ||
|
||
### Usage | ||
```groovy | ||
implementation 'no.nordicsemi.android.common:analytics:<version>' | ||
```gradle | ||
dependencies { | ||
implementation 'no.nordicsemi.android.common:<module>:<version>' | ||
} | ||
``` | ||
|
||
### Content | ||
Common views and classes related with gathering analytics data. | ||
|
||
## Sample app | ||
|
||
Run the sample app to see and test most of the components from the library. | ||
|
||
1. Clone the repository. | ||
2. Open the project in Android Studio. | ||
3. Run the `app` module on a connected device or emulator. |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Module analytics | ||
|
||
Set of classes related to Firebase Analytics. | ||
|
||
## Configuration | ||
|
||
Use of this module requires the following plugins to be applied in the app: | ||
```kotlin | ||
if (gradle.startParameter.taskRequests.toString().contains("Release")) { | ||
apply("com.google.gms.google-services") | ||
apply("com.google.firebase.crashlytics") | ||
} | ||
``` | ||
and the _google-services.json_ file to be present in the app module. | ||
|
||
Read [Firebase Setup](https://firebase.google.com/docs/android/setup) for more. | ||
|
||
> **Note:** | ||
> | ||
> This package requires Hilt, as it's using Dependency Injection to provide the | ||
> [NordicAnalytics][no.nordicsemi.android.common.analytics.NordicAnalytics] class. | ||
# Package no.nordicsemi.android.common.analytics | ||
|
||
Main API for Nordic analytics. Contains set to methods to log events. | ||
|
||
# Package no.nordicsemi.android.common.analytics.view | ||
|
||
Set of common views used for enabling analytics in Nordic apps. |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Module core | ||
|
||
Common classes and interfaces used by other modules. | ||
|
||
# Package no.nordicsemi.android.common.core | ||
|
||
Common classes and interfaces used by other modules. |
This file contains 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
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.