-
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.
Feature/fs3 1034 fetch warning (#11)
- **Changed** - userExposed has been renamed to visitorExposed - **Added** - Flagmetadata now returns campaign name, variation group name and variation name. - onVisitorExposed callback - Warning when Flags need to be updated
- Loading branch information
1 parent
a739940
commit 1092282
Showing
48 changed files
with
1,108 additions
and
466 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
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 |
---|---|---|
@@ -1,82 +1,69 @@ | ||
|
||
|
||
buildscript { | ||
|
||
/* | ||
releaseAllVariantsToBintray = | ||
- ./gradlew assembleRelease | ||
- ./gradlew artifactoryPublish | ||
- ./gradlew artifactoryPublish -Dvariant=compat | ||
testAllVariantsWithCoverage = | ||
./gradlew clean testCommonDebugUnitTestCoverage | ||
./gradlew clean testCompatDebugUnitTestCoverage | ||
./gradlew publishToSonatype closeSonatypeStagingRepository | ||
./gradlew publishToSonatype -Dvariant=compat closeSonatypeStagingRepository | ||
*/ | ||
|
||
ext { | ||
kotlin_version = '1.8.20' | ||
artifactory_artifact_id = "flagship-android" | ||
artifactory_repo = "flagship-android" | ||
artifactory_group_id = "com.abtasty" | ||
artifactory_user_org = "abtasty" | ||
artifactory_variant = System.getProperty("variant", ""); | ||
} | ||
|
||
if (!artifactory_variant.isEmpty()) { | ||
artifactory_artifact_id = artifactory_artifact_id + '-' + artifactory_variant | ||
} | ||
|
||
def flagship_version_name = System.getenv('FLAGSHIP_VERSION_NAME') | ||
def flagship_version_code = System.getenv('FLAGSHIP_VERSION_CODE') | ||
|
||
def artifactory_user = System.getenv('ARTIFACTORY_USER') | ||
def artifactory_key = System.getenv('ARTIFACTORY_KEY') | ||
|
||
if (flagship_version_name != null) | ||
rootProject.ext.flagship_version_name = flagship_version_name | ||
else | ||
rootProject.ext.flagship_version_name = "3.0.5" | ||
|
||
if (flagship_version_code != null) | ||
rootProject.ext.flagship_version_code = flagship_version_code | ||
else | ||
rootProject.ext.flagship_version_code = 14 | ||
|
||
if (artifactory_user != null && artifactory_key != null) { | ||
rootProject.ext.artifactory_user = artifactory_user | ||
rootProject.ext.artifactory_key = artifactory_key | ||
} else { | ||
try { | ||
def keystorePropertiesFile = file(getProjectDir().absolutePath+ "/keystore.properties") | ||
def keystoreProperties = new Properties() | ||
keystoreProperties.load(new FileInputStream(keystorePropertiesFile)) | ||
|
||
rootProject.ext.artifactory_user = keystoreProperties.getProperty("artifactory_user") | ||
rootProject.ext.artifactory_key = keystoreProperties.getProperty("artifactory_key") | ||
|
||
} catch (Exception e) { | ||
rootProject.ext.artifactory_user = '' | ||
rootProject.ext.artifactory_key = '' | ||
kotlin_version = '1.9.10' | ||
maven_artifact_id = "flagship-android" | ||
maven_repo = "flagship-android" | ||
maven_group_id = "com.abtasty" | ||
maven_user_org = "abtasty" | ||
maven_variant = System.getProperty("variant", "") | ||
if (!maven_variant.isEmpty()) { | ||
maven_artifact_id = maven_artifact_id + '-' + maven_variant | ||
} | ||
flagship_version_name = System.getenv('FLAGSHIP_VERSION_NAME') ?: "3.1.0" | ||
flagship_version_code = System.getenv('FLAGSHIP_VERSION_CODE') ?: 17 | ||
sonatype_signing_key = System.getenv('SONATYPE_SIGNING_KEY') | ||
sonatype_signing_pwd = System.getenv('SONATYPE_SIGNING_PWD') | ||
sonatype_username = System.getenv('SONATYPE_USERNAME') ?: ossrhUsername | ||
sonatype_password = System.getenv('SONATYPE_PASSWORD') ?: ossrhPassword | ||
sonatype_repository_id = System.getenv('SONATYPE_REPOSITORY') ?: stagingRepositoryId | ||
} | ||
|
||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath 'com.android.tools.build:gradle:7.4.2' | ||
classpath 'com.android.tools.build:gradle:8.1.2' | ||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" | ||
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.24.18" | ||
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.16" | ||
classpath "io.github.gradle-nexus:publish-plugin:1.3.0" | ||
} | ||
} | ||
|
||
plugins { | ||
id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false | ||
} | ||
|
||
apply plugin: 'io.github.gradle-nexus.publish-plugin' | ||
|
||
allprojects { | ||
repositories { | ||
google() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) | ||
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) | ||
stagingProfileId = sonatype_repository_id | ||
username = sonatype_username | ||
password = sonatype_password | ||
} | ||
} | ||
} | ||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} | ||
} | ||
|
Oops, something went wrong.