Skip to content

Commit 351601d

Browse files
Merge pull request #11 from Live2D/develop
Update to Cubism 5 SDK for Java R1 beta3
2 parents 764af57 + 8e4b7d0 commit 351601d

File tree

12 files changed

+38
-24
lines changed

12 files changed

+38
-24
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ All notable changes to this project will be documented in this file.
44

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

7+
## [5-r.1-beta.3] - 2024-01-18
8+
9+
### Changed
10+
11+
* Change the compile and target SDK version of Android OS to 14.0 (API 34).
12+
* Upgrade the version of Android Gradle Plugin from 8.0.2 to 8.1.1.
13+
* Upgrade the version of Gradle from 8.1.1 to 8.2.
14+
* Change the minimum version of Android Studio to Hedgehog(2023.1.1).
15+
16+
### Fixed
17+
18+
* Fix a problem where the result loaded exp3.json is put into map even if it was null.
19+
* Replace deprecated notation in `build.gradle` and `AndroidManifest.xml`.
20+
21+
722
## [5-r.1-beta.2] - 2023-09-28
823

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

100115
* New released!
101116

117+
[5-r.1-beta.3]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.1-beta.2...5-r.1-beta.3
102118
[5-r.1-beta.2]: https://github.com/Live2D/CubismJavaSamples/compare/5-r.1-beta.1...5-r.1-beta.2
103119
[5-r.1-beta.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1...5-r.1-beta.1
104120
[4-r.1]: https://github.com/Live2D/CubismJavaSamples/compare/4-r.1-beta.4...4-r.1

README.ja.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ Android Studioでプロジェクトを開きビルドすることを推奨しま
6767

6868
| 開発ツール | バージョン |
6969
|----------------|------------------|
70-
| Android Studio | Giraffe 2022.3.1 |
70+
| Android Studio | Hedgehog 2023.1.1 |
7171
| CMake | 3.1.0 |
72-
| Gradle | 8.1.1 |
72+
| Gradle | 8.2 |
7373

7474
### Android
7575

7676
| Android SDK tools | バージョン |
7777
| --- |--------------|
7878
| Android NDK | 21.4.7075529 |
79-
| Android SDK | 33.0.0 |
79+
| Android SDK | 34.0.0 |
8080
| CMake | 3.1.0 |
8181

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

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,16 @@ Please refer to [CHANGELOG.md](CHANGELOG.md) for the changelog of this repositor
6767

6868
| Development Tools | Version |
6969
|-------------------|--|
70-
| Android Studio | Giraffe 2022.3.1 |
70+
| Android Studio | Hedgehog 2023.1.1 |
7171
| CMake | 3.1.0 |
72-
| Gradle | 8.1.1 |
72+
| Gradle | 8.2 |
7373

7474
### Android
7575

7676
| Android SDK tools | Version |
7777
| --- |--------------|
7878
| Android NDK | 21.4.7075529 |
79-
| Android SDK | 33.0.0 |
79+
| Android SDK | 34.0.0 |
8080
| CMake | 3.1.0 |
8181

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

9090
| Version | Device | Tegra |
9191
|---------|----------| --- |
92-
| 13 | Pixel 7a ||
92+
| 14 | Pixel 7a ||
9393
| 7.1.1 | Nexus 9 | ✔︎ |
9494
| 4.1 | Pixel 5 ||
9595

Sample/build.gradle

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44

55
android {
66
namespace = "com.live2d.demo"
7-
compileSdkVersion PROP_COMPILE_SDK_VERSION.toInteger()
7+
compileSdk PROP_COMPILE_SDK_VERSION.toInteger()
88

99
defaultConfig {
1010
applicationId "com.live2d.demo"
@@ -40,7 +40,7 @@ android {
4040
}
4141
}
4242

43-
flavorDimensions "mode"
43+
flavorDimensions = ["mode"]
4444
productFlavors {
4545
Full {
4646
dimension = "mode"
@@ -56,8 +56,7 @@ android {
5656
sourceCompatibility JavaVersion.VERSION_1_7
5757
targetCompatibility JavaVersion.VERSION_1_7
5858
}
59-
60-
lintOptions {
59+
lint {
6160
abortOnError false
6261
}
6362
}

Sample/src/full/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.live2d.demo">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature
65
android:glEsVersion="0x00020000"

Sample/src/full/java/com/live2d/demo/full/LAppModel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,9 @@ private void setupModel(ICubismModelSetting setting) {
447447
byte[] buffer = createBuffer(path);
448448
CubismExpressionMotion motion = loadExpression(buffer);
449449

450-
expressions.put(name, motion);
450+
if (motion != null) {
451+
expressions.put(name, motion);
452+
}
451453
}
452454
}
453455
}

Sample/src/main/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.live2d.demo">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature
65
android:glEsVersion="0x00020000"

Sample/src/minimum/AndroidManifest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3-
package="com.live2d.demo">
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
43

54
<uses-feature
65
android:glEsVersion="0x00020000"

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ buildscript {
55
mavenCentral()
66
}
77
dependencies {
8-
classpath 'com.android.tools.build:gradle:8.0.2'
8+
classpath 'com.android.tools.build:gradle:8.1.1'
99
// classpath 'de.mannodermaus.gradle.plugins:android-junit5:1.8.2.0'
1010

1111
// NOTE: Do not place your application dependencies here; they belong

0 commit comments

Comments
 (0)