Skip to content

Commit

Permalink
Update to latest gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
fr3ts0n committed Dec 15, 2023
1 parent beb0de2 commit 152bca4
Show file tree
Hide file tree
Showing 21 changed files with 215 additions and 179 deletions.
5 changes: 2 additions & 3 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions CsvLogger/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdk 34
defaultConfig {
applicationId 'com.fr3ts0n.androbd.plugin.csv'
minSdkVersion 16
Expand All @@ -10,7 +10,7 @@ android {
versionName 'V1.1.1'
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "app_version", variant.versionName
}

Expand All @@ -22,11 +22,12 @@ android {

productFlavors {
}


lintOptions {
namespace 'com.fr3ts0n.androbd.plugin.csv'
lint {
abortOnError false
}


}

dependencies {
Expand Down
14 changes: 9 additions & 5 deletions CsvLogger/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fr3ts0n.androbd.plugin.csv" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:roundIcon="@mipmap/ic_launcher_round"
android:allowBackup="true"
android:fullBackupContent="@xml/backup_descriptor"
android:theme="@style/AppTheme.Dark" >

<activity android:name=".SettingsActivity" />

<service
android:name=".CsvDataLogger"
android:exported="true">
Expand All @@ -33,5 +29,13 @@
android:exported="false"
android:grantUriPermissions="true">
</provider>

<activity android:name="SettingsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ private void showFinishedNotification(String name)
Notification.Builder notificationBuilder = new Notification.Builder(this)
.setContentTitle(getText(R.string.lbl_notification_title))
.setContentText(getString(R.string.lbl_notification_finished))
.setSmallIcon(R.drawable.ic_coin)
.setSmallIcon(com.fr3ts0n.androbd.plugin.R.drawable.ic_coin)
.setPriority(Notification.PRIORITY_DEFAULT);

PendingIntent pendingClickIntent = PendingIntent.getActivity(getApplicationContext(),
Expand Down
12 changes: 6 additions & 6 deletions GpsProvider/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdk 34
defaultConfig {
applicationId 'com.fr3ts0n.androbd.plugin.gpsprovider'
minSdkVersion 15
Expand All @@ -11,7 +11,7 @@ android {
versionName 'V1.1.1'
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "app_version", variant.versionName
}

Expand All @@ -22,12 +22,12 @@ android {
}


lintOptions {
abortOnError false
}

productFlavors {
}
namespace 'com.fr3ts0n.androbd.plugin.gpsprovider'
lint {
abortOnError false
}
}

dependencies {
Expand Down
7 changes: 2 additions & 5 deletions GpsProvider/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="com.fr3ts0n.androbd.plugin.gpsprovider">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
Expand All @@ -13,7 +12,6 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:fullBackupContent="@xml/backup_descriptor"
android:theme="@style/AppTheme.Dark">

<receiver android:name="PluginReceiver"
Expand All @@ -29,8 +27,7 @@
android:exported="true"
android:enabled="true"/>

<activity android:name="SettingsActivity"
android:label="@string/app_name">
<activity android:name="SettingsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.VIEW"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class SettingsActivity extends PreferenceActivity
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings);
addPreferencesFromResource(com.fr3ts0n.androbd.plugin.R.xml.settings);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)
{
requestPermissions(new String[]{ Manifest.permission.ACCESS_COARSE_LOCATION,
Expand Down
12 changes: 6 additions & 6 deletions MqttPublisher/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdk 34
defaultConfig {
applicationId 'com.fr3ts0n.androbd.plugin.mqtt'
minSdkVersion 15
Expand All @@ -11,7 +11,7 @@ android {
versionName 'V1.1.1'
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "app_version", variant.versionName
}

Expand All @@ -22,12 +22,12 @@ android {
}


lintOptions {
abortOnError false
}

productFlavors {
}
namespace 'com.fr3ts0n.androbd.plugin.mqtt'
lint {
abortOnError false
}
}

dependencies {
Expand Down
7 changes: 2 additions & 5 deletions MqttPublisher/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="com.fr3ts0n.androbd.plugin.mqtt" >
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
Expand All @@ -9,7 +8,6 @@
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:fullBackupContent="@xml/backup_descriptor"
android:theme="@style/AppTheme.Dark">

<receiver android:name="PluginReceiver"
Expand All @@ -26,8 +24,7 @@
android:enabled="true"/>

<activity
android:name="SettingsActivity"
android:label="@string/app_name">
android:name="SettingsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.VIEW"/>
Expand Down
5 changes: 3 additions & 2 deletions PluginHost/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdk 34
defaultConfig {
applicationId "com.example.pluginhost"
minSdkVersion 15
Expand All @@ -15,7 +15,7 @@ android {
}
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "app_version", variant.versionName
}

Expand All @@ -27,6 +27,7 @@ android {

productFlavors {
}
namespace 'com.example.pluginhost'
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions PluginHost/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="com.example.pluginhost">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
12 changes: 6 additions & 6 deletions SensorProvider/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
compileSdk 34
defaultConfig {
applicationId 'com.fr3ts0n.androbd.plugin.sensorprovider'
minSdkVersion 15
Expand All @@ -10,7 +10,7 @@ android {
versionName 'V1.1.1'
}

applicationVariants.all { variant ->
applicationVariants.configureEach { variant ->
variant.resValue "string", "app_version", variant.versionName
}

Expand All @@ -21,12 +21,12 @@ android {
}


lintOptions {
abortOnError false
}

productFlavors {
}
namespace 'com.fr3ts0n.androbd.plugin.sensorprovider'
lint {
abortOnError false
}
}

dependencies {
Expand Down
7 changes: 2 additions & 5 deletions SensorProvider/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.fr3ts0n.androbd.plugin.sensorprovider">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:fullBackupContent="@xml/backup_descriptor"
android:theme="@style/AppTheme.Dark">

<receiver android:name="PluginReceiver"
Expand All @@ -22,8 +20,7 @@
android:exported="true"
android:enabled="true"/>

<activity android:name="SettingsActivity"
android:label="@string/app_name">
<activity android:name="SettingsActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<action android:name="android.intent.action.VIEW"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ public class SettingsActivity extends PreferenceActivity
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
addPreferencesFromResource(R.xml.settings);
addPreferencesFromResource(com.fr3ts0n.androbd.plugin.R.xml.settings);
}
}
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.2.2'
classpath 'com.android.tools.build:gradle:8.2.0'
}
}

Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
android.nonFinalResIds=false
android.nonTransitiveRClass=true
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 2 additions & 3 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#Thu Sep 16 18:42:24 CEST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 152bca4

Please sign in to comment.