Skip to content

Commit

Permalink
Migrate to SDK v1.0.0-beta.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsenoid committed Jan 26, 2023
1 parent 83dba00 commit 5cb31aa
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 20 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ dependencyResolutionManagement {
and then add this dependency to your application gradle:
```kotlin
// Firework Android Traffic Aggregator SDK
val fireworkSdkVersion = "1.0.0-beta.5"
val fireworkSdkVersion = "1.0.0-beta.6"
implementation("com.github.loopsocial:android_traffic_aggregator_sdk:$fireworkSdkVersion")
```

## Min requirements
The min Android API supported by the SDK is 21 and it is targeting API 33.
```groovy
compileSdk = 33
compileSdk = 31
minSdk = 19
targetSdk = 33
targetSdk = 31
```

## SDK initialization
Expand Down
18 changes: 9 additions & 9 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ plugins {

android {
namespace = "com.firework.example.trafficaggregator"
compileSdk = 33
compileSdk = 31

defaultConfig {
applicationId = "com.firework.example.trafficaggregator"

minSdk = 19
targetSdk = 33
targetSdk = 31

versionCode = 1
versionName = "1.0.0"
Expand All @@ -27,12 +27,12 @@ android {
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

kotlinOptions {
jvmTarget = JavaVersion.VERSION_1_8.toString()
jvmTarget = JavaVersion.VERSION_11.toString()
}

buildFeatures {
Expand All @@ -41,9 +41,9 @@ android {
}

dependencies {
implementation("androidx.core:core-ktx:1.9.0")
implementation("androidx.appcompat:appcompat:1.6.0")
implementation("com.google.android.material:material:1.7.0")
implementation("androidx.core:core-ktx:1.8.0")
implementation("androidx.appcompat:appcompat:1.4.2")
implementation("com.google.android.material:material:1.6.1")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")

testImplementation("junit:junit:4.13.2")
Expand All @@ -52,6 +52,6 @@ dependencies {
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")

// Firework Android Traffic Aggregator SDK
val fireworkSdkVersion = "1.0.0-beta.5"
val fireworkSdkVersion = "1.0.0-beta.6"
implementation("com.github.loopsocial:android_traffic_aggregator_sdk:$fireworkSdkVersion")
}
4 changes: 1 addition & 3 deletions app/src/main/res/values-night/themes.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<!-- Base application theme. -->
<style name="Theme.FWTrafficAggregatorExample" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
Expand All @@ -9,8 +9,6 @@
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_200</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
4 changes: 1 addition & 3 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<resources xmlns:tools="http://schemas.android.com/tools">
<resources>
<!-- Base application theme. -->
<style name="Theme.FWTrafficAggregatorExample" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
<!-- Primary brand color. -->
Expand All @@ -9,8 +9,6 @@
<item name="colorSecondary">@color/teal_200</item>
<item name="colorSecondaryVariant">@color/teal_700</item>
<item name="colorOnSecondary">@color/black</item>
<!-- Status bar color. -->
<item name="android:statusBarColor">?attr/colorPrimaryVariant</item>
<!-- Customize your theme here. -->
</style>
</resources>
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id ("com.android.application") version "7.3.1" apply false
id ("com.android.library") version "7.3.1" apply false
id ("com.android.application") version "7.4.0" apply false
id ("com.android.library") version "7.4.0" apply false
id ("org.jetbrains.kotlin.android") version "1.7.20" apply false
id ("org.jetbrains.kotlin.jvm") version "1.7.20" apply false
}

0 comments on commit 5cb31aa

Please sign in to comment.