Merge pull request #333 from android/wk/agp8-changes

Migrate packages to namespaces in build files
pull/335/head
Wojtek Kaliciński 2 years ago committed by GitHub
commit 603ae0f3ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@ -18,3 +18,6 @@ plugins {
id("nowinandroid.android.library.compose") id("nowinandroid.android.library.compose")
id("nowinandroid.android.library.jacoco") 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 See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
--> -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" <manifest xmlns:android="http://schemas.android.com/apk/res/android">
package="com.google.samples.apps.nowinandroid.feature.interests">
</manifest> </manifest>

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

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

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

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

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

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

Loading…
Cancel
Save