Skip to content

Build env modernization #2

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

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Build env modernization #2

wants to merge 8 commits into from

Conversation

yhirano
Copy link

@yhirano yhirano commented Mar 3, 2025

Build android-FlipView in a modern environment.

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I upgraded Gradle to build with the new OpenJDK.
The old OpenJDK does not support Apple Silicon, making development difficult.

}
dependencies {
compile 'com.android.support:support-v4:18.0.0'
plugins {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update build.gradle for modern Android Gradle Plugin.

@@ -167,7 +167,7 @@ public FlipView(Context context, AttributeSet attrs, int defStyle) {
R.styleable.FlipView);

// 0 is vertical, 1 is horizontal
mIsFlippingVertically = a.getInt(R.styleable.FlipView_orientation,
mIsFlippingVertically = a.getInt(R.styleable.FlipView_android_orientation,
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move files for modern Android Gradle Plugin.

<enum name="vertical" value="0"/>
<enum name="horizontal" value="1"/>
</attr>
<attr name="android:orientation" />
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies {
compile project(':library')
compile 'com.android.support:support-v4:18.0.0'
plugins {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update build.gradle for modern Android Gradle Plugin.

@yhirano yhirano self-assigned this Mar 3, 2025
@yhirano yhirano marked this pull request as ready for review March 3, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant