Skip to content

Update to Cubism 5 SDK for Java R1 beta3 #11

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

Merged
merged 1 commit into from
Jan 18, 2024
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [5-r.1-beta.3] - 2024-01-18

### Changed

* Change the compile and target SDK version of Android OS to 14.0 (API 34).
* Upgrade the version of Android Gradle Plugin from 8.0.2 to 8.1.1.
* Upgrade the version of Gradle from 8.1.1 to 8.2.
* Change the minimum version of Android Studio to Hedgehog(2023.1.1).

### Fixed

* Fix a problem where the result loaded exp3.json is put into map even if it was null.
* Replace deprecated notation in `build.gradle` and `AndroidManifest.xml`.


## [5-r.1-beta.2] - 2023-09-28

### Changed
Expand Down Expand Up @@ -99,6 +114,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

* New released!

[5-r.1-beta.3]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.1-beta.2...5-r.1-beta.3
[5-r.1-beta.2]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.1-beta.1...5-r.1-beta.2
[5-r.1-beta.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1...5-r.1-beta.1
[4-r.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1-beta.4...4-r.1
Expand Down
8 changes: 4 additions & 4 deletions README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ Android Studioでプロジェクトを開きビルドすることを推奨しま

| 開発ツール | バージョン |
|----------------|------------------|
| Android Studio | Giraffe 2022.3.1 |
| Android Studio | Hedgehog 2023.1.1 |
| CMake | 3.1.0 |
| Gradle | 8.1.1 |
| Gradle | 8.2 |

### Android

| Android SDK tools | バージョン |
| --- |--------------|
| Android NDK | 21.4.7075529 |
| Android SDK | 33.0.0 |
| Android SDK | 34.0.0 |
| CMake | 3.1.0 |

## 動作確認環境
Expand All @@ -88,7 +88,7 @@ Android Studioでプロジェクトを開きビルドすることを推奨しま
### Android
| バージョン | デバイス | Tegra |
|-------|----------|-------|
| 13 | Pixel 7a | |
| 14 | Pixel 7a | |
| 7.1.1 | Nexus 9 | ✔ |
| 4.1 | Pixel 5 | |

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,16 @@ Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repositor

| Development Tools | Version |
|-------------------|--|
| Android Studio | Giraffe 2022.3.1 |
| Android Studio | Hedgehog 2023.1.1 |
| CMake | 3.1.0 |
| Gradle | 8.1.1 |
| Gradle | 8.2 |

### Android

| Android SDK tools | Version |
| --- |--------------|
| Android NDK | 21.4.7075529 |
| Android SDK | 33.0.0 |
| Android SDK | 34.0.0 |
| CMake | 3.1.0 |

## Operation environment
Expand All @@ -89,7 +89,7 @@ This sample application runs with **Java SE 7** or higher Java versions.

| Version | Device | Tegra |
|---------|----------| --- |
| 13 | Pixel 7a ||
| 14 | Pixel 7a ||
| 7.1.1 | Nexus 9 | ✔︎ |
| 4.1 | Pixel 5 ||

Expand Down
7 changes: 3 additions & 4 deletions Sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {

android {
namespace = "com.live2d.demo"
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
compileSdk PROP_COMPILE_SDK_VERSION.toInteger()

defaultConfig {
applicationId "com.live2d.demo"
Expand Down Expand Up @@ -40,7 +40,7 @@ android {
}
}

flavorDimensions "mode"
flavorDimensions = ["mode"]
productFlavors {
Full {
dimension = "mode"
Expand All @@ -56,8 +56,7 @@ android {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}

lintOptions {
lint {
abortOnError false
}
}
Expand Down
3 changes: 1 addition & 2 deletions Sample/src/full/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.live2d.demo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-feature
android:glEsVersion="0x00020000"
Expand Down
4 changes: 3 additions & 1 deletion Sample/src/full/java/com/live2d/demo/full/LAppModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ private void setupModel(ICubismModelSetting setting) {
byte[] buffer = createBuffer(path);
CubismExpressionMotion motion = loadExpression(buffer);

expressions.put(name, motion);
if (motion != null) {
expressions.put(name, motion);
}
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions Sample/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.live2d.demo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-feature
android:glEsVersion="0x00020000"
Expand Down
3 changes: 1 addition & 2 deletions Sample/src/minimum/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.live2d.demo">
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

<uses-feature
android:glEsVersion="0x00020000"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.0.2'
classpath 'com.android.tools.build:gradle:8.1.1'
// classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.8.2.0'

// NOTE: Do not place your application dependencies here; they belong
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ android.useAndroidX=true
android.enableJetifier=true
# Added later
# Android SDK version that will be used as the compiled project
PROP_COMPILE_SDK_VERSION=33
PROP_COMPILE_SDK_VERSION=34
# Android SDK version that will be used as the earliest version of android this application can run on
PROP_MIN_SDK_VERSION=21
# Android SDK version that will be used as the latest version of android this application has been tested on
PROP_TARGET_SDK_VERSION=33
PROP_TARGET_SDK_VERSION=34
# List of CPU Archtexture to build that application with
# Available architextures (armeabi-v7a | arm64-v8a | x86)
# To build for multiple architexture, use the `:` between them
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Tue Jul 11 17:28:23 JST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists