Skip to content

Commit

Permalink
[#423] Remove build warnings when generating new project
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-conway committed Aug 22, 2023
1 parent 0abf70d commit 8be9863
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions template-compose/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ val getVersionCode: () -> Int = {
}

android {
namespace = "co.nimblehq.template.compose"

signingConfigs {
create(BuildType.RELEASE) {
// Remember to edit signing.properties to have the correct info for release build.
Expand Down
3 changes: 1 addition & 2 deletions template-compose/app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.nimblehq.template.compose">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<!--For Chucker in debug build only-->
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
Expand Down
3 changes: 1 addition & 2 deletions template-compose/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="co.nimblehq.template.compose">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET" />

Expand Down
6 changes: 3 additions & 3 deletions template-compose/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ plugins {
}

android {
namespace = "co.nimblehq.template.compose.data"
compileSdk = Versions.ANDROID_COMPILE_SDK_VERSION
defaultConfig {
minSdk = Versions.ANDROID_MIN_SDK_VERSION
targetSdk = Versions.ANDROID_TARGET_SDK_VERSION

consumerProguardFiles("consumer-rules.pro")
}
Expand All @@ -36,8 +36,8 @@ android {
jvmTarget = JavaVersion.VERSION_11.toString()
}

lintOptions {
isCheckDependencies = true
lint {
checkDependencies = true
xmlReport = true
xmlOutput = file("build/reports/lint/lint-result.xml")
}
Expand Down
2 changes: 1 addition & 1 deletion template-compose/data/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="co.nimblehq.template.compose.data" />
<manifest />
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class AppPreferencesRepositoryImpl @Inject constructor(
preferences[PreferencesKeys.APP_PREFERENCE] ?: true
}

override suspend fun updateAppPreference(appPreferenceValue: Boolean) {
override suspend fun updateAppPreference(appPreferencesValue: Boolean) {
appPreferencesDataStore.edit { preferences ->
preferences[PreferencesKeys.APP_PREFERENCE] = appPreferenceValue
preferences[PreferencesKeys.APP_PREFERENCE] = appPreferencesValue
}
}
}

0 comments on commit 8be9863

Please sign in to comment.