Skip to content

Commit

Permalink
Merge pull request #639 from aiselp/update-gradle8_0_2
Browse files Browse the repository at this point in the history
更新构建工具
  • Loading branch information
kkevsekk1 authored Aug 23, 2023
2 parents a9cd3c2 + 969b783 commit 5d8800f
Show file tree
Hide file tree
Showing 20 changed files with 27 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: set up JDK
uses: actions/setup-java@v1
with:
java-version: 15
java-version: 17
- name: set up kotlin
uses: fwilhe2/setup-kotlin@main
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
- name: checkout
id: check
uses: actions/checkout@v1
- name: set up JDK 15
- name: set up JDK 17
uses: actions/setup-java@v1
with:
java-version: 15
java-version: 17
- name: Build inrt template
run: |
chmod 777 ./gradlew
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
* autojs 能不能商用,取决于你对于附带的 “ **非商业性使用** ” 的理解和其法律效益。
* 反正本产品不会拿autojs 进行商用。

#### 编译相关:
### 编译相关:
环境要求:`jdk`版本17以上

命令说明:在项目根目录下运行命令,如果使用 Windows powerShell < 7.0,请使用包含 ";" 的命令

##### 本地安装调试版本到设备:
Expand Down
1 change: 1 addition & 0 deletions apkbuilder/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ android {
)
}
}
namespace = "com.stardust.autojs.apkbuilder"


}
Expand Down
3 changes: 1 addition & 2 deletions apkbuilder/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.stardust.autojs.apkbuilder">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<application
android:allowBackup="true"
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import java.util.*
import java.io.File
import java.util.Properties

plugins {
id("com.android.application")
Expand Down Expand Up @@ -166,6 +165,7 @@ android {
)
)
}
namespace = "org.autojs.autoxjs"

}

Expand Down
3 changes: 1 addition & 2 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?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="org.autojs.autoxjs">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
1 change: 1 addition & 0 deletions autojs/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ android {
res.srcDirs("src/main/res","src/main/res-i18n")
}
}
namespace = "com.stardust.autojs"
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions autojs/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

xmlns:tools="http://schemas.android.com/tools"
package="com.stardust.autojs">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
Expand Down
1 change: 1 addition & 0 deletions automator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
jniLibs.srcDirs("/libs")
}
}
namespace = "com.stardust.automator"
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion automator/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.stardust.automator">
>

<application android:supportsRtl="true">

Expand Down
4 changes: 1 addition & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import org.jetbrains.kotlin.gradle.dsl.copyFreeCompilerArgsToArgs

initVersions(file("project-versions.json"))

// Top-level build file where you can add configuration options common to all sub-projects/modules.
Expand All @@ -24,7 +22,7 @@ buildscript {
// maven { url = uri("https://jitpack.io") }
}
dependencies {
classpath("com.android.tools.build:gradle:7.2.1")
classpath("com.android.tools.build:gradle:8.0.2")
classpath(kotlin("gradle-plugin", version = "$kotlin_version"))
classpath("com.jakewharton:butterknife-gradle-plugin:10.2.3")
classpath("org.codehaus.groovy:groovy-json:3.0.8")
Expand Down
1 change: 1 addition & 0 deletions common/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ android {
res.srcDirs("src/main/res","src/main/res-i18n")
}
}
namespace = "com.stardust"
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion common/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"

package="com.stardust">
>

<application
android:allowBackup="true"
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ org.gradle.caching=true

android.useAndroidX=true
android.enableJetifier=true
android.useDeprecatedNdk=true
android.useDeprecatedNdk=true
android.defaults.buildfeatures.buildconfig=true
android.nonTransitiveRClass=false
android.nonFinalResIds=false
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
1 change: 1 addition & 0 deletions inrt/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ android {
)

}
namespace = "org.autojs.autoxjs.inrt"


}
Expand Down
3 changes: 1 addition & 2 deletions inrt/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?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="org.autojs.autoxjs.inrt">
xmlns:tools="http://schemas.android.com/tools">

<uses-permission android:name= "android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Expand Down
1 change: 1 addition & 0 deletions paddleocr/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ android {
jniLibs.srcDirs("src/main/jniLibs")
}
}
namespace = "org.autojs.autoxjs.paddleocr"
}

dependencies {
Expand Down
3 changes: 1 addition & 2 deletions paddleocr/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.autojs.autoxjs.paddleocr">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>

0 comments on commit 5d8800f

Please sign in to comment.