Skip to content

Commit

Permalink
Move to o.a.l.l.samples.android package
Browse files Browse the repository at this point in the history
  • Loading branch information
ppkarwasz committed Oct 8, 2024
1 parent 34e0c17 commit 4b139f6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion log4j-samples-android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ android {
compileSdk 34

defaultConfig {
applicationId "com.example.log4japi"
applicationId "org.apache.logging.log4j.samples.android"
minSdk 26
targetSdk 34
versionCode 1
Expand Down
4 changes: 2 additions & 2 deletions log4j-samples-android/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.log4japi">
package="org.apache.logging.log4j.samples.android">

<application
android:allowBackup="true"
Expand All @@ -14,7 +14,7 @@
android:theme="@style/Theme.Log4jAPI"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:name="MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.log4japi;
package org.apache.logging.log4j.samples.android;

import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
Expand All @@ -10,14 +10,8 @@
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.core.LoggerContext;
import org.apache.logging.log4j.core.config.ConfigurationFactory;
import org.apache.logging.log4j.core.config.ConfigurationSource;
import org.apache.logging.log4j.core.config.Configurator;
import org.apache.logging.log4j.core.config.LoggerConfig;

import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;

public class MainActivity extends AppCompatActivity {
Expand Down
2 changes: 1 addition & 1 deletion log4j-samples-android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ plugins {
id 'com.android.library' version '7.2.1' apply false
}

task clean(type: Delete) {
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
Empty file modified log4j-samples-android/gradlew
100644 → 100755
Empty file.

0 comments on commit 4b139f6

Please sign in to comment.