Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle version update and dependency update #48

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
gradle-update
fixed some project errors
  • Loading branch information
Alex committed Dec 4, 2023
commit cd95f41487412f9d6938fab66640ade010e62354
65 changes: 12 additions & 53 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,56 +1,15 @@
.externalNativeBuild
import-summary.txt

*.class
*.dex
.sync/

*.iws
*.ipr
*.iml
target/
.idea/
.gradle/
.disk/
release/
build/
spoon/

#mac temp file
.idea/
__MACOSX
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
._.DS_Store

#for eclipse
.settings/
/build
/captures
.externalNativeBuild
.cxx
local.properties
*gen/
*.classpath
*/bin/
.project

#temp file
*.bak

*.pmd
sh.exe.stackdump

.vs/
.vscode/

*.log
*.ctxt
.mtj.tmp/

hs_err_pid*

*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.cxx
*.cfg

4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

661 changes: 0 additions & 661 deletions LICENSE

This file was deleted.

57 changes: 1 addition & 56 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,56 +1 @@
.externalNativeBuild
import-summary.txt

*.class
*.dex
.sync/

*.iws
*.ipr
*.iml
target/
.idea/
.gradle/
.disk/
release/
build/
spoon/

#mac temp file
.idea/
__MACOSX
.DS_Store
._.DS_Store

#for eclipse
.settings/
local.properties
*gen/
*.classpath
*/bin/
.project

#temp file
*.bak

*.pmd
sh.exe.stackdump

.vs/
.vscode/

*.log
*.ctxt
.mtj.tmp/

hs_err_pid*

*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
*.cxx
*.cfg

/build
60 changes: 27 additions & 33 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,24 +1,30 @@
plugins {
id 'com.android.application'
id 'kotlin-android'
id 'org.jetbrains.kotlin.android'
}

android {
namespace 'com.alex.pro'
compileSdk rootProject.ext.compileSdkVersion

buildFeatures.buildConfig = true
lintOptions {
checkReleaseBuilds true
quiet true
abortOnError false
ignoreWarnings true
textOutput "stdout"
textReport false
disable "UnusedResources", 'RestrictedApi'
disable 'TypographyFractions', 'TypographyQuotes'
enable 'RtlHardcoded', 'RtlCompat', 'RtlEnabled'
checkOnly 'NewApi', 'InlinedApi'
}
defaultConfig {
if (rootProject.ext.isMasterPkg) {
applicationId rootProject.ext.masterPkg
manifestPlaceholders = [label: "Waxmoon"]
} else {
applicationId rootProject.ext.assistPkg
manifestPlaceholders = [label: "Waxmoon32"]
ndk.abiFilters 'armeabi-v7a'
}
applicationId "com.alex.pro"
minSdk rootProject.ext.minSdkVersion
targetSdk rootProject.ext.targetSdkVersion
versionCode rootProject.ext.versionCode
versionName rootProject.ext.versionName
versionCode 1
versionName "1.0"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
Expand Down Expand Up @@ -49,29 +55,14 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion compose_version
kotlinCompilerVersion kotlin_version
kotlinCompilerExtensionVersion '1.5.1'
}
packagingOptions {
packaging {
resources {
excludes += '/META-INF/*'
}
jniLibs {
useLegacyPackaging = true
excludes += '/META-INF/{AL2.0,LGPL2.1}'
}
}
lintOptions {
checkReleaseBuilds true
quiet true
abortOnError false
ignoreWarnings true
textOutput "stdout"
textReport false
disable "UnusedResources", 'RestrictedApi'
disable 'TypographyFractions', 'TypographyQuotes'
enable 'RtlHardcoded', 'RtlCompat', 'RtlEnabled'
check 'NewApi', 'InlinedApi'
}

}

tasks.withType(Javadoc) {
Expand All @@ -82,6 +73,11 @@ tasks.withType(Javadoc) {
}

dependencies {
implementation fileTree(dir: "libs", include: ["*.jar", "*.aar"])
implementation project(path: ':opensdk')


// compose
implementation "androidx.compose.material:material-icons-extended:$compose_version"
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.4.2'
Expand All @@ -96,6 +92,4 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"

implementation project(path: ':opensdk')
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon
package com.alex.pro

import androidx.test.platform.app.InstrumentationRegistry
import androidx.test.ext.junit.runners.AndroidJUnit4
Expand All @@ -19,6 +19,6 @@ class ExampleInstrumentedTest {
fun useAppContext() {
// Context of the app under test.
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
assertEquals("org.waxmoon", appContext.packageName)
assertEquals("com.alex.pro", appContext.packageName)
}
}
13 changes: 6 additions & 7 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"
package="org.waxmoon"
android:sharedUserId="org.waxmoon.github">
xmlns:tools="http://schemas.android.com/tools">

<!--高危权限-->
<uses-permission android:name="android.permission.MANAGE_EXTERNAL_STORAGE" />
Expand Down Expand Up @@ -118,23 +117,23 @@
android:multiArch="true"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="${label}"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.GithubMultiApp" >
android:theme="@style/Theme.GithubMultiApp">
<activity
android:name=".AppListActivity"
android:exported="true"
android:theme="@style/Theme.GithubMultiApp.NoActionBar" >
android:theme="@style/Theme.GithubMultiApp.NoActionBar"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>

<provider
android:name="org.waxmoon.MoonProvider"
android:name="com.alex.pro.MoonProvider"
android:authorities="${applicationId}:org.waxmoon.MoonProvider"
android:exported="false"
android:grantUriPermissions="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon
package com.alex.pro

import android.content.Context
import android.content.Intent
Expand All @@ -24,7 +24,7 @@ import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.*
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.ui.tooling.preview.Preview
import org.waxmoon.ui.theme.GithubMultiAppTheme
import com.alex.pro.ui.theme.GithubMultiAppTheme

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon;
package com.alex.pro;

import android.app.Application;
import android.content.Context;
Expand Down
8 changes: 8 additions & 0 deletions app/src/main/java/com/alex/pro/MoonProvider.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package com.alex.pro;

import androidx.core.content.FileProvider;

public class MoonProvider extends FileProvider
{

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon.ui.theme
package com.alex.pro.ui.theme

import androidx.compose.ui.graphics.Color

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon.ui.theme
package com.alex.pro.ui.theme

import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material.Shapes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon.ui.theme
package com.alex.pro.ui.theme

import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.material.MaterialTheme
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon.ui.theme
package com.alex.pro.ui.theme

import androidx.compose.material.Typography
import androidx.compose.ui.text.TextStyle
Expand Down
6 changes: 0 additions & 6 deletions app/src/main/java/org/waxmoon/MoonProvider.java

This file was deleted.

1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@
<string name="toast_unsupport" tools:ignore="MissingTranslation">not support</string>
<string name="toast_assist_missing" tools:ignore="MissingTranslation">assist not install</string>
<string name="toast_already_installed" translatable="false">already installed</string>
<string name="app_name">haha</string>
</resources>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.waxmoon
package com.alex.pro

import org.junit.Test

Expand Down
10 changes: 8 additions & 2 deletions assist/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ plugins {

android {
compileSdk rootProject.ext.compileSdkVersion

namespace = "org.waxmoon.github"

defaultConfig {

applicationId rootProject.ext.assistPkg

minSdk rootProject.ext.minSdkVersion

targetSdk rootProject.ext.targetSdkVersion

versionCode rootProject.ext.versionCode

versionName rootProject.ext.versionName

ndk.abiFilters 'armeabi-v7a'
//noinspection ChromeOsAbiSupport
ndk.abiFilters rootProject.ext.abiFilters

if (!rootProject.ext.isMasterPkg) {
manifestPlaceholders = [masterPkg: "${rootProject.ext.masterPkg}"]
Expand Down
5 changes: 3 additions & 2 deletions assist/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="org.waxmoon"

android:sharedUserId="org.waxmoon.github">

<!--高危权限-->
Expand Down Expand Up @@ -117,7 +117,8 @@
android:supportsRtl="true"
android:usesCleartextTraffic="true">
<meta-data android:name="metadata.master.pkg" android:value="${masterPkg}"/>
<activity android:name=".MainActivity">
<activity android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand Down
Loading