-
Notifications
You must be signed in to change notification settings - Fork 12
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 #8 from fingerprintjs/develop
Release v1.0.0
- Loading branch information
Showing
17 changed files
with
276 additions
and
89 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [ main, develop ] | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- app/** | ||
|
||
env: | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
RELEASE_SIGN_KEY_ALIAS: ${{ secrets.RELEASE_SIGN_KEY_ALIAS }} | ||
RELEASE_SIGN_KEY_PASSWORD: ${{ secrets.RELEASE_SIGN_KEY_PASSWORD }} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Make gradlew executable | ||
run: chmod +x ./gradlew | ||
|
||
- name: Lint | ||
run: ./gradlew fpjs-pro:lint | ||
|
||
- name: Build library | ||
run: ./gradlew fpjs-pro:assembleRelease | ||
|
||
- name: Save library to artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: fpjs-pro/build/outputs/aar/* | ||
|
||
- name: Build App | ||
run: ./gradlew app:assembleRelease | ||
|
||
- name: Save application to artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: app/build/outputs/apk/release/* |
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
Binary file not shown.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.fingerprintjs.android.fpjs_pro"> | ||
|
||
<uses-permission android:name="android.permission.INTERNET"/> | ||
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" /> | ||
</manifest> |
Large diffs are not rendered by default.
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
22 changes: 22 additions & 0 deletions
22
...src/main/java/com/fingerprintjs/android/fpjs_pro/device_id_providers/AndroidIdProvider.kt
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,22 @@ | ||
package com.fingerprintjs.android.fpjs_pro.device_id_providers | ||
|
||
|
||
import android.annotation.SuppressLint | ||
import android.content.ContentResolver | ||
import android.provider.Settings | ||
import com.fingerprintjs.android.fpjs_pro.tools.executeSafe | ||
|
||
|
||
class AndroidIdProvider( | ||
private val contentResolver: ContentResolver | ||
) { | ||
@SuppressLint("HardwareIds") | ||
fun getAndroidId(): String { | ||
return executeSafe({ | ||
Settings.Secure.getString( | ||
contentResolver, | ||
Settings.Secure.ANDROID_ID | ||
) | ||
}, "") | ||
} | ||
} |
Oops, something went wrong.