Skip to content

Commit

Permalink
updated to API 30
Browse files Browse the repository at this point in the history
  • Loading branch information
JimSeker committed Oct 26, 2020
1 parent cee925c commit 303e491
Show file tree
Hide file tree
Showing 49 changed files with 285 additions and 68 deletions.
6 changes: 6 additions & 0 deletions BroadCastDemo1/.idea/compiler.xml

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

7 changes: 3 additions & 4 deletions BroadCastDemo1/.idea/gradle.xml

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

30 changes: 30 additions & 0 deletions BroadCastDemo1/.idea/jarRepositories.xml

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

2 changes: 1 addition & 1 deletion BroadCastDemo1/.idea/misc.xml

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

8 changes: 4 additions & 4 deletions BroadCastDemo1/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
applicationId "edu.cs4730.broadcastdemo1"
minSdkVersion 22
targetSdkVersion 29
minSdkVersion 24
targetSdkVersion 30
versionCode="1"
versionName="1.0"
}
Expand All @@ -21,6 +21,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.localbroadcastmanager:localbroadcastmanager:1.0.0'
}
2 changes: 1 addition & 1 deletion BroadCastDemo1/app/src/main/res/values/styles.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat">
<style name="AppTheme" parent="Theme.AppCompat.DayNight">
<!-- Customize your theme here. -->
</style>

Expand Down
2 changes: 1 addition & 1 deletion BroadCastDemo1/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:3.5.1'
classpath 'com.android.tools.build:gradle:4.1.0'
}
}

Expand Down
4 changes: 2 additions & 2 deletions BroadCastDemo1/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Oct 24 15:53:35 MDT 2019
#Mon Oct 26 12:54:48 MDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\:https://services.gradle.org/distributions/gradle-6.5-all.zip
6 changes: 6 additions & 0 deletions BroadCastDemo2/.idea/compiler.xml

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

7 changes: 3 additions & 4 deletions BroadCastDemo2/.idea/gradle.xml

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

30 changes: 30 additions & 0 deletions BroadCastDemo2/.idea/jarRepositories.xml

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

2 changes: 1 addition & 1 deletion BroadCastDemo2/.idea/misc.xml

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

10 changes: 5 additions & 5 deletions BroadCastDemo2/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 29
compileSdkVersion 30

defaultConfig {
applicationId "edu.cs4730.broadcastdemo2"
minSdkVersion 22
targetSdkVersion 29
minSdkVersion 24
targetSdkVersion 30
versionCode = "1"
versionName = "1.0"
}
Expand All @@ -21,6 +21,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
}
1 change: 0 additions & 1 deletion BroadCastDemo2/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<manifest xmlns:android="https://schemas.android.com/apk/res/android"
package="edu.cs4730.broadcastdemo2">

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

<application
android:allowBackup="true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public MyReceiver() {
@Override
public void onReceive(Context context, Intent intent) {

Log.v("myReceiver", "received an intent");
Log.wtf("myReceiver", "received an intent");
String info = "\n something wrong.";
int mStatus = 0;
if (intent.getAction().equals(Intent.ACTION_BATTERY_LOW)) { //battery is low!
Expand Down
2 changes: 1 addition & 1 deletion BroadCastDemo2/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:3.5.1'
classpath 'com.android.tools.build:gradle:4.1.0'
}
}

Expand Down
4 changes: 2 additions & 2 deletions BroadCastDemo2/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Thu Oct 24 15:51:25 MDT 2019
#Mon Oct 26 12:55:19 MDT 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\:https://services.gradle.org/distributions/gradle-5.4.1-all.zip
distributionUrl=https\:https://services.gradle.org/distributions/gradle-6.5-all.zip
6 changes: 6 additions & 0 deletions BroadcastBoot/.idea/compiler.xml

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

3 changes: 3 additions & 0 deletions BroadcastBoot/.idea/gradle.xml

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

45 changes: 45 additions & 0 deletions BroadcastBoot/.idea/jarRepositories.xml

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

2 changes: 1 addition & 1 deletion BroadcastBoot/.idea/misc.xml

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

10 changes: 5 additions & 5 deletions BroadcastBoot/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 28
compileSdkVersion 30

defaultConfig {
applicationId "edu.cs4730.broadcastboot"
minSdkVersion 19
targetSdkVersion 28
minSdkVersion 24
targetSdkVersion 30
versionCode="1"
versionName="1.0"
}
Expand All @@ -21,6 +21,6 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import android.graphics.Color;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import androidx.appcompat.app.AppCompatActivity;
import android.util.Log;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.NotificationCompat;
import androidx.core.app.NotificationCompat;
import android.util.Log;

import java.util.Calendar;
Expand Down
Loading

0 comments on commit 303e491

Please sign in to comment.