Skip to content

Commit

Permalink
Upgrade AGP
Browse files Browse the repository at this point in the history
  • Loading branch information
seadowg committed Sep 16, 2022
1 parent 66dfbe2 commit 9072e37
Show file tree
Hide file tree
Showing 54 changed files with 76 additions and 88 deletions.
1 change: 1 addition & 0 deletions analytics/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.odk.collect.analytics'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions analytics/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.analytics">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
Expand Down
1 change: 1 addition & 0 deletions androidshared/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.androidshared'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions androidshared/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.androidshared">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

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

Expand Down
1 change: 1 addition & 0 deletions androidtest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android {
minifyEnabled false
}
}
namespace 'org.odk.collect.androidtest'
}
dependencies {
coreLibraryDesugaring Dependencies.desugar
Expand Down
3 changes: 1 addition & 2 deletions androidtest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.androidtest">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
5 changes: 1 addition & 4 deletions async/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,7 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}

lintOptions {
// There is a crash caused by this https://issuetracker.google.com/issues/151177986
disable "InvalidPeriodicWorkRequestInterval"
}
namespace 'org.odk.collect.async'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions async/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.async">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">
</manifest>
1 change: 1 addition & 0 deletions audioclips/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ android {
minifyEnabled false
}
}
namespace 'org.odk.collect.audioclips'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions audioclips/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.audioclips">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

/
</manifest>
1 change: 1 addition & 0 deletions audiorecorder/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ android {
testOptions {
unitTests.includeAndroidResources = true
}
namespace 'org.odk.collect.audiorecorder'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions audiorecorder/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.audiorecorder">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

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

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath 'com.android.tools.build:gradle:7.3.0'
classpath 'com.google.gms:google-services:4.3.13'
classpath 'org.jacoco:org.jacoco.core:0.8.8'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.1'
Expand Down
41 changes: 16 additions & 25 deletions collect_app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -159,23 +159,13 @@ android {
}

packagingOptions {
// Pick first occurrence of any files that cause conflicts, as defined
// in common.gradle
pickFirst 'META-INF/DEPENDENCIES'
pickFirst 'META-INF/LICENSE'
pickFirst 'META-INF/LICENSE.txt'
pickFirst 'META-INF/NOTICE'
pickFirst 'META-INF/NOTICE.txt'
pickFirst 'META-INF/services/com.fasterxml.jackson.core.JsonFactory'
pickFirst 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec'
pickFirst 'META-INF/services/javax.ws.rs.ext.MessageBodyReader'
pickFirst 'META-INF/services/javax.ws.rs.ext.MessageBodyWriter'
pickFirst 'draftv4/schema'
pickFirst 'draftv3/schema'

// These library licenses will be referenced in-app
exclude 'META-INF/ASL-2.0.txt'
exclude 'META-INF/LGPL-3.0.txt'
resources {
// These library licenses will be referenced in-app
excludes += ['META-INF/ASL-2.0.txt', 'META-INF/LGPL-3.0.txt']

// Pick first occurrence of any files that cause conflicts
pickFirsts += ['META-INF/DEPENDENCIES', 'META-INF/LICENSE', 'META-INF/LICENSE.txt', 'META-INF/NOTICE', 'META-INF/NOTICE.txt', 'META-INF/services/com.fasterxml.jackson.core.JsonFactory', 'META-INF/services/com.fasterxml.jackson.core.ObjectCodec', 'META-INF/services/javax.ws.rs.ext.MessageBodyReader', 'META-INF/services/javax.ws.rs.ext.MessageBodyWriter', 'draftv4/schema', 'draftv3/schema']
}

// To ensure that ODK Collect is installable on all devices, we don't use
// abiFilters to exclude any ABIs; but to keep the APK slim, we include
Expand Down Expand Up @@ -213,14 +203,6 @@ android {
}
}

lintOptions {
abortOnError true
xmlReport true
htmlReport true
checkGeneratedSources true
checkDependencies true
lintConfig file("${project.rootDir}/config/lint.xml")
}

sourceSets {
androidTest {
Expand All @@ -230,6 +212,15 @@ android {
java.srcDirs += "src/commonTest/java"
}
}
lint {
abortOnError true
checkDependencies true
checkGeneratedSources true
htmlReport true
lintConfig file("$rootDir/config/lint.xml")
xmlReport true
}
namespace 'org.odk.collect.android'
}

configurations.all {
Expand Down
3 changes: 1 addition & 2 deletions collect_app/src/debug/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:tools="https://schemas.android.com/tools"
package="org.odk.collect.android">
xmlns:tools="https://schemas.android.com/tools">

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

Expand Down
1 change: 0 additions & 1 deletion collect_app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ the specific language governing permissions and limitations under the License.
-->
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:tools="https://schemas.android.com/tools"
package="org.odk.collect.android"
tools:ignore="GoogleAppIndexingWarning">

<uses-feature
Expand Down
1 change: 1 addition & 0 deletions errors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ android {
buildFeatures {
viewBinding true
}
namespace 'org.odk.collect.errors'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions errors/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.errors">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

<application>
<activity
Expand Down
1 change: 1 addition & 0 deletions externalapp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.externalapp'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions externalapp/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.externalapp">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions fragmentstest/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.odk.collect.fragmentstest'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions fragmentstest/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.fragmentstest">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions geo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ android {
buildFeatures {
viewBinding true
}
namespace 'org.odk.collect.geo'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions geo/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.geo">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

<application>
<activity
Expand Down
1 change: 1 addition & 0 deletions icons/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
namespace 'org.odk.collect.icons'
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion icons/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest package="org.odk.collect.icons">
<manifest>

</manifest>
1 change: 1 addition & 0 deletions imageloader/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.odk.collect.imageloader'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions imageloader/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.imageloader">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions location/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.location'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions location/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="https://schemas.android.com/apk/res/android"
package="org.odk.collect.location">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

<application>
<service
Expand Down
2 changes: 2 additions & 0 deletions mapbox/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}

namespace 'org.odk.collect.mapbox'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions mapbox/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
xmlns:tools="https://schemas.android.com/tools"
package="org.odk.collect.mapbox">
xmlns:tools="https://schemas.android.com/tools">

<application>

Expand Down
1 change: 1 addition & 0 deletions maps/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ android {
buildFeatures {
viewBinding true
}
namespace 'org.odk.collect.maps'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions maps/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.maps">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions material/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.material'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions material/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.material" />
<manifest xmlns:android="https://schemas.android.com/apk/res/android" />
1 change: 1 addition & 0 deletions nbistubs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ android {
minifyEnabled false
}
}
namespace 'org.odk.collect.nbistubs'
}
3 changes: 1 addition & 2 deletions nbistubs/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.nbistubs" />
<manifest xmlns:android="https://schemas.android.com/apk/res/android" />
1 change: 1 addition & 0 deletions osmdroid/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ android {
kotlinOptions {
jvmTarget = '1.8'
}
namespace 'org.odk.collect.osmdroid'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions osmdroid/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.osmdroid">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions permissions/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.permissions'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions permissions/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.permissions">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
1 change: 1 addition & 0 deletions projects/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ android {
includeAndroidResources = true
}
}
namespace 'org.odk.collect.projects'

}

Expand Down
3 changes: 1 addition & 2 deletions projects/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="org.odk.collect.projects">
<manifest xmlns:android="https://schemas.android.com/apk/res/android">

</manifest>
Loading

0 comments on commit 9072e37

Please sign in to comment.