Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PDF Viewer Scanner White
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
PDF Viewer Scanner White
Commits
124d0255
Commit
124d0255
authored
Oct 08, 2024
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
parent
16f75fc7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
60 additions
and
47 deletions
+60
-47
build.gradle.kts
app/build.gradle.kts
+14
-12
google-services.json
app/google-services.json
+29
-0
AndroidManifest.xml
app/src/main/AndroidManifest.xml
+3
-0
AdmobNativeUtils.kt
.../base/pdfviewerscannerwhite/ads/admob/AdmobNativeUtils.kt
+0
-1
AppPreferences.java
.../com/base/pdfviewerscannerwhite/utils/AppPreferences.java
+6
-1
build.gradle.kts
build.gradle.kts
+3
-0
settings.gradle.kts
settings.gradle.kts
+5
-33
No files found.
app/build.gradle.kts
View file @
124d0255
...
@@ -4,6 +4,8 @@ import java.util.Locale
...
@@ -4,6 +4,8 @@ import java.util.Locale
plugins
{
plugins
{
alias
(
libs
.
plugins
.
androidApplication
)
alias
(
libs
.
plugins
.
androidApplication
)
alias
(
libs
.
plugins
.
jetbrainsKotlinAndroid
)
alias
(
libs
.
plugins
.
jetbrainsKotlinAndroid
)
id
(
"com.google.gms.google-services"
)
id
(
"com.google.firebase.crashlytics"
)
}
}
android
{
android
{
...
@@ -34,23 +36,16 @@ android {
...
@@ -34,23 +36,16 @@ android {
}
}
}
}
// ndk {
// abiFilters.add("arm64-v8a")
// // 取消注释以下行以添加更多 ABI 支持
// abiFilters.add("armeabi-v7a")
// }
// sourceSets {
// getByName("main") {
// jniLibs.srcDirs("src/main/jniLibs")
// }
// }
}
}
buildTypes
{
buildTypes
{
release
{
release
{
isMinifyEnabled
=
false
isMinifyEnabled
=
false
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
proguardFiles
(
getDefaultProguardFile
(
"proguard-android-optimize.txt"
),
"proguard-rules.pro"
)
// 设置是否要自动上传
firebaseCrashlytics
{
mappingFileUploadEnabled
=
true
}
signingConfig
=
signingConfigs
.
getByName
(
"release"
)
signingConfig
=
signingConfigs
.
getByName
(
"release"
)
}
}
}
}
...
@@ -65,8 +60,14 @@ android {
...
@@ -65,8 +60,14 @@ android {
viewBinding
=
true
viewBinding
=
true
buildConfig
=
true
buildConfig
=
true
}
}
}
gradle
.
taskGraph
.
whenReady
{
tasks
.
forEach
{
task
->
if
(
task
.
name
.
contains
(
"uploadCrashlyticsMappingFile"
))
{
task
.
enabled
=
false
}
}
}
}
dependencies
{
dependencies
{
...
@@ -107,6 +108,7 @@ dependencies {
...
@@ -107,6 +108,7 @@ dependencies {
implementation
(
"com.google.firebase:firebase-messaging"
)
implementation
(
"com.google.firebase:firebase-messaging"
)
implementation
(
"com.google.firebase:firebase-analytics-ktx"
)
implementation
(
"com.google.firebase:firebase-analytics-ktx"
)
implementation
(
"com.google.firebase:firebase-crashlytics"
)
implementation
(
"com.google.firebase:firebase-crashlytics"
)
implementation
(
"com.google.firebase:firebase-database-ktx"
)
//facebook
//facebook
implementation
(
"com.facebook.android:facebook-android-sdk:[8,9)"
)
implementation
(
"com.facebook.android:facebook-android-sdk:[8,9)"
)
...
...
app/google-services.json
0 → 100644
View file @
124d0255
{
"project_info"
:
{
"project_number"
:
"52701079012"
,
"project_id"
:
"cleanmasterfile"
,
"storage_bucket"
:
"cleanmasterfile.appspot.com"
},
"client"
:
[
{
"client_info"
:
{
"mobilesdk_app_id"
:
"1:52701079012:android:457119c4f48cba94fa93f1"
,
"android_client_info"
:
{
"package_name"
:
"com.base.pdfviewerscannerwhite"
}
},
"oauth_client"
:
[],
"api_key"
:
[
{
"current_key"
:
"AIzaSyDr_7jwK1_HHUX6gW--AiPvN4HABddApNk"
}
],
"services"
:
{
"appinvite_service"
:
{
"other_platform_oauth_client"
:
[]
}
}
}
],
"configuration_version"
:
"1"
}
\ No newline at end of file
app/src/main/AndroidManifest.xml
View file @
124d0255
...
@@ -119,6 +119,9 @@
...
@@ -119,6 +119,9 @@
android:resource=
"@xml/file_paths"
/>
android:resource=
"@xml/file_paths"
/>
</provider>
</provider>
<meta-data
android:name=
"com.google.android.gms.ads.APPLICATION_ID"
android:value=
"ca-app-pub-3940256099942544~3347511713"
/>
<meta-data
<meta-data
android:name=
"com.facebook.sdk.ApplicationId"
android:name=
"com.facebook.sdk.ApplicationId"
android:value=
"@string/facebook_app_id"
/>
android:value=
"@string/facebook_app_id"
/>
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/ads/admob/AdmobNativeUtils.kt
View file @
124d0255
...
@@ -3,7 +3,6 @@ package com.base.pdfviewerscannerwhite.ads.admob
...
@@ -3,7 +3,6 @@ package com.base.pdfviewerscannerwhite.ads.admob
import
android.app.Activity
import
android.app.Activity
import
android.view.ViewGroup
import
android.view.ViewGroup
import
androidx.core.view.isVisible
import
androidx.core.view.isVisible
import
com.base.browserwhite.ads.admob.NativeView
import
com.base.pdfviewerscannerwhite.BuildConfig
import
com.base.pdfviewerscannerwhite.BuildConfig
import
com.base.pdfviewerscannerwhite.R
import
com.base.pdfviewerscannerwhite.R
import
com.base.pdfviewerscannerwhite.ads.AdDisplayUtils
import
com.base.pdfviewerscannerwhite.ads.AdDisplayUtils
...
...
app/src/main/java/com/base/pdfviewerscannerwhite/utils/AppPreferences.java
View file @
124d0255
package
com
.
base
.
pdfviewerscannerwhite
.
utils
;
package
com
.
base
.
pdfviewerscannerwhite
.
utils
;
import
android.annotation.SuppressLint
;
import
android.content.Context
;
import
android.content.Context
;
import
android.content.SharedPreferences
;
import
android.content.SharedPreferences
;
...
@@ -7,9 +8,12 @@ import com.base.pdfviewerscannerwhite.helper.MyApplication;
...
@@ -7,9 +8,12 @@ import com.base.pdfviewerscannerwhite.helper.MyApplication;
import
java.util.Set
;
import
java.util.Set
;
/**
* @noinspection ALL, rawtypes, rawtypes
*/
public
class
AppPreferences
{
public
class
AppPreferences
{
private
static
AppPreferences
sInstance
;
private
static
AppPreferences
sInstance
;
private
SharedPreferences
sharedPreferences
;
private
final
SharedPreferences
sharedPreferences
;
private
static
final
String
PREF_FILE_NAME
=
"app_prefs"
;
// 偏好文件名
private
static
final
String
PREF_FILE_NAME
=
"app_prefs"
;
// 偏好文件名
private
AppPreferences
(
Context
context
)
{
private
AppPreferences
(
Context
context
)
{
...
@@ -44,6 +48,7 @@ public class AppPreferences {
...
@@ -44,6 +48,7 @@ public class AppPreferences {
}
}
}
}
@SuppressLint
(
"ApplySharedPref"
)
public
void
put
(
String
key
,
Object
value
,
boolean
isCommit
)
{
public
void
put
(
String
key
,
Object
value
,
boolean
isCommit
)
{
SharedPreferences
.
Editor
editor
=
sharedPreferences
.
edit
();
SharedPreferences
.
Editor
editor
=
sharedPreferences
.
edit
();
if
(
value
instanceof
Integer
)
{
if
(
value
instanceof
Integer
)
{
...
...
build.gradle.kts
View file @
124d0255
...
@@ -3,4 +3,7 @@ plugins {
...
@@ -3,4 +3,7 @@ plugins {
alias
(
libs
.
plugins
.
androidApplication
)
apply
false
alias
(
libs
.
plugins
.
androidApplication
)
apply
false
alias
(
libs
.
plugins
.
jetbrainsKotlinAndroid
)
apply
false
alias
(
libs
.
plugins
.
jetbrainsKotlinAndroid
)
apply
false
alias
(
libs
.
plugins
.
androidLibrary
)
apply
false
alias
(
libs
.
plugins
.
androidLibrary
)
apply
false
id
(
"com.google.gms.google-services"
)
version
"4.4.1"
apply
false
id
(
"com.google.firebase.crashlytics"
)
version
"3.0.2"
apply
false
}
}
\ No newline at end of file
settings.gradle.kts
View file @
124d0255
pluginManagement
{
pluginManagement
{
repositories
{
repositories
{
maven
(
"https://maven.aliyun.com/nexus/content/groups/public/"
)
maven
(
"https://maven.aliyun.com/repository/public"
)
maven
(
"https://maven.aliyun.com/repository/central"
)
maven
(
"https://maven.aliyun.com/repository/google"
)
maven
(
"https://maven.aliyun.com/repository/gradle-plugin"
)
maven
(
"https://www.jitpack.io"
)
maven
(
"https://maven.ghostscript.com/"
)
google
{
google
{
content
{
content
{
includeGroupByRegex
(
"com\\.android.*"
)
includeGroupByRegex
(
"com\\.android.*"
)
...
@@ -19,38 +10,19 @@ pluginManagement {
...
@@ -19,38 +10,19 @@ pluginManagement {
}
}
mavenCentral
()
mavenCentral
()
gradlePluginPortal
()
gradlePluginPortal
()
maven
(
"https://android-sdk.is.com"
)
// maven("https://maven.aliyun.com/nexus/content/groups/public/")
// maven("https://maven.aliyun.com/repository/public")
// maven("https://maven.aliyun.com/repository/central")
// maven("https://maven.aliyun.com/repository/google")
// maven("https://maven.aliyun.com/repository/gradle-plugin")
// maven("https://www.jitpack.io")
}
}
}
}
dependencyResolutionManagement
{
dependencyResolutionManagement
{
repositoriesMode
.
set
(
RepositoriesMode
.
FAIL_ON_PROJECT_REPOS
)
repositoriesMode
.
set
(
RepositoriesMode
.
FAIL_ON_PROJECT_REPOS
)
repositories
{
repositories
{
maven
(
"https://maven.aliyun.com/nexus/content/groups/public/"
)
maven
(
"https://maven.aliyun.com/repository/public"
)
maven
(
"https://maven.aliyun.com/repository/central"
)
maven
(
"https://maven.aliyun.com/repository/google"
)
maven
(
"https://maven.aliyun.com/repository/gradle-plugin"
)
maven
(
"https://www.jitpack.io"
)
maven
(
"https://maven.ghostscript.com/"
)
google
()
google
()
mavenCentral
()
mavenCentral
()
maven
(
"https://android-sdk.is.com"
)
maven
(
"https://s01.oss.sonatype.org/content/groups/public"
)
maven
(
"https://jitpack.io"
)
// maven("https://maven.aliyun.com/nexus/content/groups/public/")
maven
(
"https://android-sdk.is.com"
)
// maven("https://maven.aliyun.com/repository/public")
maven
(
"https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea"
)
// maven("https://maven.aliyun.com/repository/central")
maven
(
"https://artifact.bytedance.com/repository/pangle"
)
// maven("https://maven.aliyun.com/repository/google")
// maven("https://maven.aliyun.com/repository/gradle-plugin")
// maven("https://www.jitpack.io")
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment