Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5866df7
fix build error
Jul 24, 2025
7d36df0
Update dependencies to latest versions
Jul 24, 2025
6e140c6
Merge pull request #1 from Logan676/upgrade-all-dependent-libraries
Jul 24, 2025
dbc6d1f
Update Android build configuration
Jul 24, 2025
67933d9
Merge pull request #2 from Logan676/update-compilesdkversion-and-buil…
Jul 24, 2025
bd43a60
centralize library versions
Jul 24, 2025
6e9c0bd
Merge pull request #4 from Logan676/standardize-version-across-all-do…
Jul 24, 2025
c639524
Specify namespace for each module
Jul 24, 2025
5dc9358
Merge pull request #6 from Logan676/set-namespace-in-build-file
Jul 24, 2025
1a25166
Fix widget library R imports
Jul 24, 2025
722b086
Merge pull request #7 from Logan676/fix-compilation-errors-in-camerat…
Jul 24, 2025
ecd7122
Fix compile errors for non-transitive resources
Jul 24, 2025
9a7346d
Merge pull request #8 from Logan676/fix-compilation-errors-in-pickerl…
Jul 24, 2025
d9fdf81
Fix resource references for namespaced modules
Jul 24, 2025
98f3747
Merge pull request #10 from Logan676/fix-compilation-errors-in-videol…
Jul 24, 2025
2159801
Fix resource references in picker library
Jul 24, 2025
8e3e701
Merge pull request #11 from Logan676/pqfvry-fix-compilation-errors-in…
Jul 24, 2025
cfb07ac
Fix lifecycle version
Jul 24, 2025
e32ec2a
Merge pull request #12 from Logan676/fix-unresolved-lifecycle-extensi…
Jul 24, 2025
c97a817
Update AGP and compileSdk
Jul 24, 2025
6b659c3
Merge pull request #13 from Logan676/update-compile-sdk-version-to-35
Jul 24, 2025
4689460
Include transitive resources in R
Jul 24, 2025
e5c8540
Merge pull request #14 from Logan676/fix-compilation-errors-in-camera…
Jul 24, 2025
5cf5fa2
Fix compile error by making resource IDs final
Jul 24, 2025
482739f
Merge pull request #15 from Logan676/fix-constant-expression-errors-i…
Jul 24, 2025
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
25 changes: 13 additions & 12 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.caincamera'

defaultConfig {
applicationId "com.cgfay.caincamera"
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 2
versionName "1.1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -49,13 +50,13 @@ dependencies {
implementation project(':medialibrary')
implementation project(':utilslibrary')
implementation project(':videolibrary')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.google.android.material:material:1.2.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
implementation "androidx.recyclerview:recyclerview:${rootProject.ext.recyclerViewVersion}"
implementation "com.google.android.material:material:${rootProject.ext.materialVersion}"
implementation "androidx.constraintlayout:constraintlayout:${rootProject.ext.constraintLayoutVersion}"
implementation "com.github.bumptech.glide:glide:${rootProject.ext.glideVersion}"
// debugImplementation 'com.squareup.leakcanary:leakcanary-android:2.2'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
// Top-level build file where you can add configuration options common to all sub-projects/modules.
apply from: "versions.gradle"

buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
// Updated to support compileSdk 35
classpath 'com.android.tools.build:gradle:8.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
31 changes: 16 additions & 15 deletions cameralibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.cameralibrary'

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand All @@ -33,8 +34,8 @@ android {
}
}

def camerax_version = "1.0.0-rc03"
def lifecycle_version = '2.2.0'
def camerax_version = rootProject.ext.cameraXVersion
def lifecycle_version = rootProject.ext.lifecycleVersion

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
Expand All @@ -50,11 +51,11 @@ dependencies {
implementation project(':widgetlibrary')

// AndroidX libraries
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
implementation 'com.google.android.material:material:1.2.1'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
implementation "androidx.legacy:legacy-support-v4:${rootProject.ext.legacySupportVersion}"
implementation "androidx.recyclerview:recyclerview:${rootProject.ext.recyclerViewVersion}"
implementation "androidx.constraintlayout:constraintlayout:${rootProject.ext.constraintLayoutVersion}"
implementation "com.google.android.material:material:${rootProject.ext.materialVersion}"

// Lifecycle and LiveData
implementation "androidx.lifecycle:lifecycle-runtime:$lifecycle_version"
Expand All @@ -70,9 +71,9 @@ dependencies {
implementation "androidx.camera:camera-lifecycle:$camerax_version"

// Glide
implementation 'com.github.bumptech.glide:glide:4.11.0'
implementation "com.github.bumptech.glide:glide:${rootProject.ext.glideVersion}"

testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
17 changes: 9 additions & 8 deletions facedetectlibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.facedetectlibrary'

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -39,10 +40,10 @@ dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation project(':landmarklibrary')
implementation project(':utilslibrary')
implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
implementation(name: 'MGFaceppSDK-0.5.2', ext: 'aar')
implementation(name: 'MGLicenseManagerSDK-0.3.1', ext: 'aar')
}
21 changes: 11 additions & 10 deletions filterlibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.filterlibrary'

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -50,10 +51,10 @@ dependencies {
implementation project(':landmarklibrary')
implementation project(':utilslibrary')
implementation project(':gdxlibrary')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
implementation "androidx.legacy:legacy-support-v4:${rootProject.ext.legacySupportVersion}"
implementation "androidx.recyclerview:recyclerview:${rootProject.ext.recyclerViewVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
17 changes: 9 additions & 8 deletions gdxlibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.badlogic.gdx'

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -48,8 +49,8 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
3 changes: 3 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ android.enableJetifier=true
android.useAndroidX=true
org.gradle.jvmargs=-Xmx1536m
android.injected.testOnly=false
# Include resources from dependent modules in generated R classes
android.nonTransitiveRClass=false
android.nonFinalResIds=false
# When configured, Gradle will run in incubating parallel mode.
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue May 04 22:45:29 CST 2021
#Thu Jul 24 10:32:48 CST 2025
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
Empty file modified gradlew
100644 → 100755
Empty file.
23 changes: 12 additions & 11 deletions imagelibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.imagelibrary'

defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand All @@ -31,11 +32,11 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':utilslibrary')
implementation project(':filterlibrary')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
implementation "androidx.legacy:legacy-support-v4:${rootProject.ext.legacySupportVersion}"
implementation "androidx.recyclerview:recyclerview:${rootProject.ext.recyclerViewVersion}"
implementation "androidx.constraintlayout:constraintlayout:${rootProject.ext.constraintLayoutVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public void setImagePath(String path, boolean deleteInputFile) {
*/
private void requestStoragePermission() {
if (shouldShowRequestPermissionRationale(Manifest.permission.READ_EXTERNAL_STORAGE)) {
PermissionConfirmDialogFragment.newInstance(getString(R.string.request_storage_permission), PermissionUtils.REQUEST_STORAGE_PERMISSION)
PermissionConfirmDialogFragment.newInstance(getString(com.cgfay.utilslibrary.R.string.request_storage_permission), PermissionUtils.REQUEST_STORAGE_PERMISSION)
.show(getChildFragmentManager(), FRAGMENT_DIALOG);
} else {
requestPermissions(new String[]{ Manifest.permission.READ_EXTERNAL_STORAGE},
Expand All @@ -346,7 +346,7 @@ private void requestStoragePermission() {
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == PermissionUtils.REQUEST_STORAGE_PERMISSION) {
if (grantResults.length != 1 || grantResults[0] != PackageManager.PERMISSION_GRANTED) {
PermissionErrorDialogFragment.newInstance(getString(R.string.request_storage_permission), PermissionUtils.REQUEST_STORAGE_PERMISSION, true)
PermissionErrorDialogFragment.newInstance(getString(com.cgfay.utilslibrary.R.string.request_storage_permission), PermissionUtils.REQUEST_STORAGE_PERMISSION, true)
.show(getChildFragmentManager(), FRAGMENT_DIALOG);
} else {
mStorageWriteEnable = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

import com.cgfay.imagelibrary.R;


/**
* 裁剪遮罩视图
* Created by cain.huang on 2017/12/28.
Expand Down Expand Up @@ -72,8 +73,8 @@ public CropCoverView(Context context) {
}

private void init() {
mStrokeWidth = (int) getResources().getDimension(R.dimen.dp3);
mStrokeWidthNew = (int) getResources().getDimension(R.dimen.dp1);
mStrokeWidth = (int) getResources().getDimension(com.cgfay.utilslibrary.R.dimen.dp3);
mStrokeWidthNew = (int) getResources().getDimension(com.cgfay.utilslibrary.R.dimen.dp1);

mPaint = new Paint();
mPaint.setAntiAlias(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public Paint newPaint(int color) {

Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setStrokeWidth(getResources().getDimension(R.dimen.dp3));
paint.setStrokeWidth(getResources().getDimension(com.cgfay.utilslibrary.R.dimen.dp3));
paint.setStyle(Paint.Style.STROKE);
paint.setStrokeJoin(Paint.Join.ROUND);
paint.setStrokeCap(Paint.Cap.ROUND);
Expand Down
17 changes: 9 additions & 8 deletions landmarklibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
apply plugin: 'com.android.library'

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.landmarklibrary'


defaultConfig {
minSdkVersion 21
targetSdkVersion 30
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand All @@ -30,8 +31,8 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])

implementation 'androidx.appcompat:appcompat:1.2.0'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
19 changes: 10 additions & 9 deletions medialibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
apply plugin: 'com.android.library'

//def platformVersion = 24 // openGLES 3.2 min api level
def platformVersion = 21 // 18: openGLES 3 min api level
def platformVersion = rootProject.ext.minSdkVersion // 18: openGLES 3 min api level
// def platformVersion = 12 //openGLES 2 min api level

android {
compileSdkVersion 30
buildToolsVersion '30.0.2'
compileSdkVersion rootProject.ext.compileSdkVersion
buildToolsVersion rootProject.ext.buildToolsVersion
namespace 'com.cgfay.media'

defaultConfig {
minSdkVersion "${platformVersion}"
targetSdkVersion 30
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 1
versionName "1.0"

Expand Down Expand Up @@ -64,9 +65,9 @@ dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':utilslibrary')
implementation project(':filterlibrary')
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.appcompat:appcompat:${rootProject.ext.appcompatVersion}"
implementation "androidx.constraintlayout:constraintlayout:${rootProject.ext.constraintLayoutVersion}"
testImplementation "junit:junit:${rootProject.ext.junitVersion}"
androidTestImplementation "androidx.test.ext:junit:${rootProject.ext.androidXJunitVersion}"
androidTestImplementation "androidx.test.espresso:espresso-core:${rootProject.ext.espressoVersion}"
}
Loading