Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,13 @@ For personal study use only.

一款以Google/casa-log为框架来学习Android基础的App,在学习其他优秀的三方库中进行集成开发。仅供个人学习使用。

## Topics List[update here]
## Topics List

* [AndroidRes](app-catalog/samples/androidres)
* [Foundation](app-catalog/samples/foundation)
* [ShadowLayout](app-catalog/samples/shadowlayout)
* [Titlebar](app-catalog/samples/titlebar)
* [Toaster](app-catalog/samples/toaster)
* [Xperimissions](app-catalog/samples/xpermissions)
* [Xplayer](app-catalog/samples/xplayer)
* [wBasis](app-catalog/samples/wBasis)
* [wNdk](app-catalog/samples/wNdk)
* [wPermission](app-catalog/samples/wPermission)
* [wPlayer](app-catalog/samples/wPlayer)
* [wShadowLayout](app-catalog/samples/wShadowLayout)
* [wTitlebar](app-catalog/samples/wTitlebar)
* [wToaster](app-catalog/samples/wToaster)
20 changes: 11 additions & 9 deletions app-catalog/app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
* Copyright 2022 Google LLC
* Copyright 2023-2024 wintmain
* Copyright 2023-2025 wintmain
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -27,21 +27,24 @@ plugins {

android {
namespace 'com.wintmain.catalog.app'
compileSdk 34
compileSdk 35

// target -> Platform that needs to be adapted; compileSdk above can be ignored
// Intuitive example, edge-to-edge starting from 35
defaultConfig {
applicationId "com.wintmain.catalog.app"
minSdk 26
targetSdk 34
versionCode 20250101
versionName 'V20250101'
versionCode 20250601
versionName 'V20250601'

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

buildTypes {
release {
minifyEnabled false
debug {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -92,7 +95,6 @@ dependencies {
androidTestImplementation libs.androidx.test.ext.junit
testImplementation libs.androidx.test.ext.junit

// App中集成CodeLocator: https://github.com/bytedance/CodeLocator
// 暂时禁用
// debugImplementation libs.codelocator.core
// 暂时禁用 App中集成CodeLocator: https://github.com/bytedance/CodeLocator
// debugImplementation libs.codelocator.core
}

This file was deleted.

9 changes: 0 additions & 9 deletions app-catalog/samples/titlebar/build.gradle

This file was deleted.

9 changes: 0 additions & 9 deletions app-catalog/samples/toaster/build.gradle

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ android {
viewBinding = true
aidl = true
}
namespace 'com.wintmain.foundation'
namespace 'com.wintmain.wBasis'
}

dependencies {
implementation project(path: ':app-catalog:samples:xpermissions:libxpermissions')
implementation project(path: ':app-catalog:samples:foundation:libfoundation')
implementation project(path: ':app-catalog:samples:toaster:libtoaster')
implementation project(path: ':app-catalog:samples:titlebar:libtitlebar')
implementation project(path: ':app-catalog:samples:wPermission:libwPermission')
implementation project(path: ':app-catalog:samples:wBasis:libwBasis')
implementation project(path: ':app-catalog:samples:wToaster:libwToaster')
implementation project(path: ':app-catalog:samples:wTitlebar:libwTitlebar')

implementation libs.androidx.constraintlayout
implementation libs.androidx.activity.compose
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ android {
}
}

namespace 'lib.wintmain.foundation'
namespace 'lib.wintmain.wBasis'
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
~ limitations under the License.
-->

<manifest package="lib.wintmain.titlebar">
<manifest package="lib.wintmain.wBasis">

</manifest>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.app.Activity;
import android.content.Context;
Expand All @@ -29,7 +29,7 @@
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import lib.wintmain.foundation.action.*;
import lib.wintmain.wBasis.action.*;

import java.util.List;
import java.util.Random;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.content.Context;
import android.util.SparseArray;
Expand All @@ -26,7 +26,7 @@
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import lib.wintmain.foundation.action.ResourcesAction;
import lib.wintmain.wBasis.action.ResourcesAction;

/** desc : RecyclerView 适配器技术基类 */
public abstract class BaseAdapter<VH extends BaseAdapter<?>.ViewHolder>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.annotation.SuppressLint;
import android.app.Activity;
Expand All @@ -37,7 +37,7 @@
import androidx.lifecycle.Lifecycle;
import androidx.lifecycle.LifecycleOwner;
import androidx.lifecycle.LifecycleRegistry;
import lib.wintmain.foundation.action.*;
import lib.wintmain.wBasis.action.*;

import java.lang.ref.SoftReference;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.app.Activity;
import android.app.Application;
Expand All @@ -29,7 +29,7 @@
import androidx.annotation.NonNull;
import androidx.fragment.app.Fragment;
import androidx.lifecycle.Lifecycle;
import lib.wintmain.foundation.action.*;
import lib.wintmain.wBasis.action.*;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.animation.ValueAnimator;
import android.annotation.SuppressLint;
Expand All @@ -32,7 +32,7 @@
import androidx.annotation.*;
import androidx.core.content.ContextCompat;
import androidx.core.widget.PopupWindowCompat;
import lib.wintmain.foundation.action.*;
import lib.wintmain.wBasis.action.*;

import java.lang.ref.SoftReference;
import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.annotation.SuppressLint;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.view.ViewGroup;
import androidx.annotation.NonNull;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation;
package lib.wintmain.wBasis;

import android.view.View;
import android.view.ViewGroup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.app.Activity;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import lib.wintmain.foundation.R;
import lib.wintmain.wBasis.R;

/** desc : 动画样式 */
public interface AnimAction {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.os.Bundle;
import android.os.Parcelable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.view.View;
import androidx.annotation.IdRes;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.os.Handler;
import android.os.Looper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.content.Context;
import android.view.View;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.action;
package lib.wintmain.wBasis.action;

import android.content.Context;
import android.content.res.Resources;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

/**
* Helper class for a list (or tree) of LoggerNodes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

import android.graphics.Typeface;
import android.os.Bundle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

/**
* Basic interface for a logging system that can output to one or more targets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

import android.app.Activity;
import android.content.Context;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

import android.util.Log;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package lib.wintmain.foundation.logger;
package lib.wintmain.wBasis.logger;

/**
* Simple {@link LogNode} filter, removes everything except the message.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.wintmain.foundation">
package="com.wintmain.wBasis">

<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package com.wintmain.wBasis.aidl;

import com.wintmain.wBasis.aidl.Book;

parcelable Book;
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// INewPeopleListener.aidl
package com.wintmain.foundation.aidl;
package com.wintmain.wBasis.aidl;

import com.wintmain.foundation.aidl.People;
import com.wintmain.wBasis.aidl.People;

// AIDL中无法使用普通接口,所以创建此文件

Expand Down
Loading
Loading