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 e7c1330
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 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
5 changes: 3 additions & 2 deletions template-compose/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
}

android {
namespace = "co.nimblehq.template.compose.data"
compileSdk = Versions.ANDROID_COMPILE_SDK_VERSION
defaultConfig {
minSdk = Versions.ANDROID_MIN_SDK_VERSION
Expand Down Expand Up @@ -36,8 +37,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 @@ -6,5 +6,5 @@ interface AppPreferencesRepository {

fun getAppPreference(): Flow<Boolean>

suspend fun updateAppPreference(appPreferencesValue: Boolean)
suspend fun updateAppPreference(appPreferenceValue: Boolean)
}
2 changes: 2 additions & 0 deletions template-xml/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ plugins {
val keystoreProperties = rootDir.loadGradleProperties("signing.properties")

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

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-xml/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.xml">
<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-xml/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.xml">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

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

Expand Down
1 change: 1 addition & 0 deletions template-xml/data/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
}

android {
namespace = "co.nimblehq.template.xml.data"
compileSdk = Versions.ANDROID_COMPILE_SDK_VERSION
defaultConfig {
minSdk = Versions.ANDROID_MIN_SDK_VERSION
Expand Down
2 changes: 1 addition & 1 deletion template-xml/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.xml.data" />
<manifest />

0 comments on commit e7c1330

Please sign in to comment.