Skip to content

Commit

Permalink
Merge pull request #9 from NordicPlayground/dependencies/compose
Browse files Browse the repository at this point in the history
Migration to Compose 1.3 using new BOM
  • Loading branch information
philips77 authored Oct 25, 2022
2 parents e22bc08 + 68655bb commit 1c06653
Show file tree
Hide file tree
Showing 9 changed files with 65 additions and 70 deletions.
16 changes: 8 additions & 8 deletions analytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,22 @@ dependencies {
implementation project(":core")
implementation project(":theme")

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material3:material3"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Data Store
implementation "androidx.datastore:datastore-preferences:1.0.0"

// Dagger and Hilt
implementation "com.google.dagger:hilt-android:$dagger_version"
kapt "com.google.dagger:hilt-android-compiler:$dagger_version"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"

implementation platform('com.google.firebase:firebase-bom:30.5.0')
// Firebase for Analytics
implementation platform('com.google.firebase:firebase-bom:31.0.1')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-crashlytics-ktx'
}
Expand Down
17 changes: 8 additions & 9 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -50,18 +50,17 @@ dependencies {
implementation project(":navigation")
implementation project(":permission")

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.compose.material3:material3"
implementation "androidx.compose.material:material-icons-extended"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Integration with activities
implementation "androidx.activity:activity-compose:1.6.0"
implementation "androidx.activity:activity-compose:1.6.1"

// Dagger and Hilt
implementation "com.google.dagger:hilt-android:$dagger_version"
kapt "com.google.dagger:hilt-android-compiler:$dagger_version"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ buildscript {

ext {
kotlin_version = '1.7.20'
compose_version = '1.3.0-rc01'
compose_version = '2022.10.00'
compose_compiler_version = '1.3.2'
material3_version = '1.0.0-rc01'
dagger_version = '2.44'

android_api_version = 33
android_min_api_version = 21
}
Expand Down
3 changes: 2 additions & 1 deletion core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ android {
}

dependencies {
implementation platform("androidx.compose:compose-bom:$compose_version")
// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui"
}

// === Maven Central configuration ===
Expand Down
11 changes: 8 additions & 3 deletions navigation/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,18 @@ kapt {
}

dependencies {
implementation platform("androidx.compose:compose-bom:$compose_version")
// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.ui:ui"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Integration with activities
implementation "androidx.activity:activity-compose:1.6.0"
implementation "androidx.activity:activity-compose:1.6.1"
// Navigation
implementation "androidx.navigation:navigation-compose:2.6.0-alpha02"
implementation "androidx.navigation:navigation-compose:2.6.0-alpha03"

// Dagger and Hilt
implementation "com.google.dagger:hilt-android:$dagger_version"
kapt "com.google.dagger:hilt-android-compiler:$dagger_version"
implementation "androidx.hilt:hilt-navigation-compose:1.0.0"
Expand Down
16 changes: 6 additions & 10 deletions permission/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,13 @@ dependencies {
implementation project(":theme")
implementation project(":navigation")

implementation "com.google.accompanist:accompanist-flowlayout:0.26.4-beta"

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.compose.material3:material3"
implementation "androidx.compose.material:material-icons-extended"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'

implementation "com.google.dagger:hilt-android:$dagger_version"
kapt "com.google.dagger:hilt-android-compiler:$dagger_version"
Expand Down
30 changes: 14 additions & 16 deletions theme/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,22 @@ android {
}

dependencies {
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3"
implementation "androidx.compose.material:material-icons-extended"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Integration with activities
implementation "androidx.activity:activity-compose:1.6.1"
// Splash Screen
implementation 'androidx.core:core-splashscreen:1.0.0'

implementation "com.google.accompanist:accompanist-pager:0.26.4-beta"
implementation "com.google.accompanist:accompanist-pager-indicators:0.26.4-beta"

// Pager with indicators
implementation "com.google.accompanist:accompanist-pager:0.27.0"
implementation "com.google.accompanist:accompanist-pager-indicators:0.27.0"
// Markdown
implementation 'com.github.jeziellago:compose-markdown:0.3.0'

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
// Material You
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
// Integration with activities
implementation "androidx.activity:activity-compose:1.6.0"
}

// === Maven Central configuration ===
Expand Down
16 changes: 8 additions & 8 deletions uilogger/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@ kapt {

dependencies {
implementation project(":theme")
implementation "no.nordicsemi.android:log:2.3.0"

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material3:material3"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// nRF Logger
implementation "no.nordicsemi.android:log:2.3.0"

// Dagger and Hilt
implementation "com.google.dagger:hilt-android:$dagger_version"
kapt "com.google.dagger:hilt-android-compiler:$dagger_version"
}
Expand Down
22 changes: 9 additions & 13 deletions uiscanner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,23 +46,19 @@ dependencies {
implementation project(":theme")
implementation project(":permission")

implementation "com.google.accompanist:accompanist-flowlayout:0.26.4-beta"
implementation "com.google.accompanist:accompanist-swiperefresh:0.26.4-beta"
implementation "com.google.accompanist:accompanist-flowlayout:0.27.0"
implementation "com.google.accompanist:accompanist-swiperefresh:0.27.0"

// Fundamental components of compose UI
implementation "androidx.compose.ui:ui:$compose_version"
// Previews
implementation "androidx.compose.ui:ui-tooling:$compose_version"
// Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation platform("androidx.compose:compose-bom:$compose_version")
// Material 3
implementation "androidx.compose.material3:material3:$material3_version"
implementation "androidx.compose.material3:material3"
// Material design icons
implementation "androidx.compose.material:material-icons-core:$compose_version"
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation "androidx.compose.material:material-icons-extended"
// Android Studio Preview support
implementation 'androidx.compose.ui:ui-tooling-preview'
debugImplementation 'androidx.compose.ui:ui-tooling'
// Integration with activities
implementation "androidx.activity:activity-compose:1.6.0"

implementation "androidx.activity:activity-compose:1.6.1"
// Brings the new BluetoothLeScanner API to older platforms
implementation "no.nordicsemi.android.support.v18:scanner:1.6.0"

Expand Down

0 comments on commit 1c06653

Please sign in to comment.