-
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 #46 from fingerprintjs/feature/project-refinements
Feature/project refinements
- Loading branch information
Showing
11 changed files
with
137 additions
and
115 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 |
---|---|---|
@@ -1 +1,10 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/* | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
import com.android.build.gradle.internal.api.BaseVariantOutputImpl | ||
|
||
@Suppress("PropertyName") | ||
val VERSION_NAME="2.3.3" | ||
@Suppress("PropertyName") | ||
val VERSION_CODE=16 | ||
|
||
plugins { | ||
id("com.android.application") | ||
id("kotlin-android") | ||
id("org.jetbrains.kotlin.plugin.parcelize") | ||
} | ||
|
||
android { | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.fingerprintjs.android.fpjs_pro_demo" | ||
minSdk = 21 | ||
targetSdk = 33 | ||
versionCode = VERSION_CODE | ||
versionName = VERSION_NAME | ||
|
||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" | ||
} | ||
|
||
signingConfigs { | ||
create("release") { | ||
storeFile = file("release.jks") | ||
storePassword = System.getenv("KEYSTORE_PASSWORD") | ||
keyAlias = System.getenv("RELEASE_SIGN_KEY_ALIAS") | ||
keyPassword = System.getenv("RELEASE_SIGN_KEY_PASSWORD") | ||
} | ||
create("releaseLocalSign") { | ||
storeFile = file("release_local.jks") | ||
storePassword = "password" | ||
keyAlias = "key0" | ||
keyPassword = "password" | ||
} | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = true | ||
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
signingConfig = signingConfigs.getByName("release") | ||
} | ||
create("releaseLocalSign") { | ||
isMinifyEnabled = true | ||
proguardFiles (getDefaultProguardFile ("proguard-android-optimize.txt"), "proguard-rules.pro") | ||
signingConfig = signingConfigs.getByName("releaseLocalSign") | ||
matchingFallbacks += listOf("release") | ||
} | ||
} | ||
|
||
namespace = "com.fingerprintjs.android.fpjs_pro_demo" | ||
|
||
buildFeatures { | ||
buildConfig = true | ||
} | ||
|
||
compileOptions { | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
|
||
applicationVariants.all { | ||
val variant = this | ||
this.outputs.all { | ||
(this as? BaseVariantOutputImpl)?.outputFileName = "FPJS-Pro-Playground-${variant.name}-${variant.versionName}.apk" | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
val useFpProDebugVersion = false // switch to true when needed to debug the library | ||
implementation("com.fingerprint.android:pro:$VERSION_NAME${if (useFpProDebugVersion) "-debug" else ""}") | ||
|
||
implementation("org.osmdroid:osmdroid-android:6.1.11") | ||
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") | ||
implementation("androidx.core:core-ktx:1.12.0") | ||
implementation("androidx.appcompat:appcompat:1.6.1") | ||
implementation("com.google.android.material:material:1.9.0") | ||
|
||
// see https://github.com/google/tink/issues/702 | ||
implementation("androidx.security:security-crypto-ktx:1.1.0-alpha06") { | ||
exclude(group = "com.google.crypto.tink", module = "tink-android") | ||
} | ||
implementation("com.google.crypto.tink:tink-android:1.9.0") | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
buildscript { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath("com.android.tools.build:gradle:8.1.1") | ||
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10") | ||
} | ||
} | ||
|
||
task<Delete>("clean") { | ||
delete(rootProject.buildDir) | ||
} |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) | ||
repositories { | ||
google() | ||
mavenCentral() | ||
mavenLocal { | ||
mavenContent { | ||
includeVersionByRegex("com.fingerprint.android", "pro", ".*-debug") | ||
} | ||
} | ||
|
||
maven { url = uri("https://jitpack.io") } | ||
maven { url = uri("https://maven.fpregistry.io/releases") } | ||
} | ||
} | ||
rootProject.name = "fingerprintjs-pro-android-demo" | ||
include(":app") |