Migrate packages to namespaces in build files

Change-Id: I21e021caa0ea72a7097dfd9af04a3c07a0cc9aa5
pull/333/head
Wojtek Kaliciński 2 years ago
parent 57e78b5c38
commit dcc23829d4

@ -32,6 +32,7 @@ android {
excludes.add("/META-INF/{AL2.0,LGPL2.1}")
}
}
namespace = "com.google.samples.apps.niacatalog"
}
dependencies {

@ -14,8 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.niacatalog">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application
android:allowBackup="true"

@ -13,8 +13,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import com.google.samples.apps.nowinandroid.Flavor
import com.google.samples.apps.nowinandroid.FlavorDimension
plugins {
id("nowinandroid.android.application")
@ -75,6 +73,7 @@ android {
isIncludeAndroidResources = true
}
}
namespace = "com.google.samples.apps.nowinandroid"
}
dependencies {

@ -15,8 +15,7 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.samples.apps.nowinandroid">
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.common"
}
dependencies {
implementation(libs.kotlinx.coroutines.android)
testImplementation(project(":core:testing"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.common">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -18,6 +18,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.data.test"
}
dependencies {
api(project(":core:data"))
implementation(project(":core:testing"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.data.test">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -20,6 +20,10 @@ plugins {
id("kotlinx-serialization")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.data"
}
dependencies {
implementation(project(":core:common"))
implementation(project(":core:model"))
@ -35,4 +39,4 @@ dependencies {
implementation(libs.kotlinx.datetime)
implementation(libs.kotlinx.coroutines.android)
implementation(libs.kotlinx.serialization.json)
}
}

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.data">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
</manifest>

@ -33,6 +33,7 @@ android {
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
}
namespace = "com.google.samples.apps.nowinandroid.core.database"
}
dependencies {

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.database">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -18,6 +18,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.datastore.test"
}
dependencies {
api(project(":core:datastore"))
implementation(project(":core:testing"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.datastore.test">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -32,6 +32,7 @@ android {
defaultConfig {
consumerProguardFiles("consumer-proguard-rules.pro")
}
namespace = "com.google.samples.apps.nowinandroid.core.datastore"
}
// Setup protobuf configuration, generating lite Java and Kotlin classes

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.datastore">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -26,6 +26,7 @@ android {
lint {
checkDependencies = true
}
namespace = "com.google.samples.apps.nowinandroid.core.designsystem"
}
dependencies {

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.designsystem">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -21,6 +21,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.navigation"
}
dependencies {
api(libs.androidx.hilt.navigation.compose)
api(libs.androidx.navigation.compose)

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.navigation">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -26,6 +26,7 @@ android {
buildFeatures {
buildConfig = true
}
namespace = "com.google.samples.apps.nowinandroid.core.network"
}
secrets {

@ -14,8 +14,7 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.network">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET" />
</manifest>

@ -18,6 +18,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.testing"
}
dependencies {
implementation(project(":core:common"))
implementation(project(":core:data"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.testing">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.ui"
}
dependencies {
implementation(project(":core:designsystem"))
implementation(project(":core:model"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.ui">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.feature.author"
}
dependencies {
implementation(libs.kotlinx.datetime)
}

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.feature.author">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.feature.bookmarks"
}
dependencies {
implementation(libs.androidx.compose.material3.windowSizeClass)
}

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.feature.bookmarks">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.feature.foryou"
}
dependencies {
implementation(libs.kotlinx.datetime)

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.feature.foryou">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -18,3 +18,6 @@ plugins {
id("nowinandroid.android.library.compose")
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.feature.interests"
}

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.feature.interests">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -19,6 +19,10 @@ plugins {
id("nowinandroid.android.library.jacoco")
}
android {
namespace = "com.google.samples.apps.nowinandroid.feature.topic"
}
dependencies {
implementation(libs.kotlinx.datetime)
}

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.feature.topic">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -18,6 +18,10 @@ plugins {
id("nowinandroid.android.hilt")
}
android {
namespace = "com.google.samples.apps.nowinandroid.core.sync.test"
}
dependencies {
api(project(":sync:work"))
implementation(project(":core:data"))

@ -14,7 +14,6 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.samples.apps.nowinandroid.core.sync.test">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
</manifest>

@ -23,6 +23,7 @@ android {
defaultConfig {
testInstrumentationRunner = "com.google.samples.apps.nowinandroid.core.testing.NiaTestRunner"
}
namespace = "com.google.samples.apps.nowinandroid.sync"
}
dependencies {

@ -15,8 +15,7 @@
limitations under the License.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.google.samples.apps.nowinandroid.sync">
xmlns:tools="http://schemas.android.com/tools">
<application>
<provider

Loading…
Cancel
Save