File tree Expand file tree Collapse file tree 5 files changed +5
-11
lines changed
java/org/apache/logging/log4j/samples/android Expand file tree Collapse file tree 5 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ android {
66 compileSdk 34
77
88 defaultConfig {
9- applicationId " com.example.log4japi "
9+ applicationId " org.apache.logging.log4j.samples.android "
1010 minSdk 26
1111 targetSdk 34
1212 versionCode 1
Original file line number Diff line number Diff line change 11<?xml version =" 1.0" encoding =" utf-8" ?>
22<manifest xmlns : android =" http://schemas.android.com/apk/res/android"
33 xmlns : tools =" http://schemas.android.com/tools"
4- package =" com.example.log4japi " >
4+ package =" org.apache.logging.log4j.samples.android " >
55
66 <application
77 android : allowBackup =" true"
1414 android : theme =" @style/Theme.Log4jAPI"
1515 tools : targetApi =" 31" >
1616 <activity
17- android : name =" . MainActivity"
17+ android : name =" MainActivity"
1818 android : exported =" true" >
1919 <intent-filter >
2020 <action android : name =" android.intent.action.MAIN" />
Original file line number Diff line number Diff line change 1- package com . example . log4japi ;
1+ package org . apache . logging . log4j . samples . android ;
22
33import androidx .appcompat .app .AlertDialog ;
44import androidx .appcompat .app .AppCompatActivity ;
1010import org .apache .logging .log4j .Level ;
1111import org .apache .logging .log4j .LogManager ;
1212import org .apache .logging .log4j .Logger ;
13- import org .apache .logging .log4j .core .LoggerContext ;
14- import org .apache .logging .log4j .core .config .ConfigurationFactory ;
15- import org .apache .logging .log4j .core .config .ConfigurationSource ;
1613import org .apache .logging .log4j .core .config .Configurator ;
17- import org .apache .logging .log4j .core .config .LoggerConfig ;
1814
19- import java .io .IOException ;
20- import java .io .InputStream ;
2115import java .util .Arrays ;
2216
2317public class MainActivity extends AppCompatActivity {
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ plugins {
44 id ' com.android.library' version ' 7.2.1' apply false
55}
66
7- task clean ( type : Delete ) {
7+ tasks . register( ' clean ' , Delete ) {
88 delete rootProject. buildDir
99}
You can’t perform that action at this time.
0 commit comments