Skip to content

Commit

Permalink
feat: add readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight-ZXW committed Sep 17, 2021
1 parent 9431218 commit 7b313d7
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 20 deletions.
6 changes: 3 additions & 3 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.knightboot.spwaitkiller">
package="com.knightboot.spwaitkiller.sample">

<application
android:allowBackup="true"
Expand All @@ -10,10 +10,10 @@
android:supportsRtl="true"
android:theme="@style/Theme.SpWaitKiller">
<activity
android:name=".sample.SecondActivity"
android:name=".SecondActivity"
android:exported="true" />
<activity
android:name=".sample.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
Expand Up @@ -2,23 +2,20 @@

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Looper;
import android.util.Log;
import android.view.View;

import com.knightboot.spwaitkiller.R;
import com.knightboot.spwaitkiller.Reflection;
import com.knightboot.spwaitkiller.SpWaitKiller;

import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
import java.util.concurrent.CountDownLatch;

public class MainActivity extends AppCompatActivity {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import android.os.Bundle;

import com.knightboot.spwaitkiller.R;

public class SecondActivity extends AppCompatActivity {

Expand Down
18 changes: 15 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
google()
maven { url 'https://jitpack.io' }
mavenLocal()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"

classpath 'com.android.tools.build:gradle:4.2.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
mavenCentral()
google()
maven { url 'https://jitpack.io' }
mavenLocal()
}
tasks.withType(Javadoc) {
enabled = false
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Sep 14 19:34:58 CST 2021
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
Empty file added readme.md
Empty file.
8 changes: 0 additions & 8 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
}
}
rootProject.name = "SpWaitKiller"
include ':app'
include ':spwaitkiller'
32 changes: 31 additions & 1 deletion spwaitkiller/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}
group 'com.knightboost'
version '0.0.1'

android {
compileSdk 30
Expand Down Expand Up @@ -30,8 +33,35 @@ android {
dependencies {

implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'com.google.android.material:material:1.3.0'
testImplementation 'junit:junit:4.+'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
}

// Because the components are created only during the afterEvaluate phase, you must
// configure your publications using the afterEvaluate() lifecycle method.
afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release

// You can then customize attributes of the publication as shown below.
groupId = group
artifactId = 'spwaitkiller'
version = version
}
// Creates a Maven publication called “debug”.
debug(MavenPublication) {
// Applies the component for the debug build variant.
from components.debug

groupId = group
artifactId = 'spwaitkiller'
version = version + '-SNAPSHOT'
}
}
}
}

0 comments on commit 7b313d7

Please sign in to comment.