Comments (4)
@gourgouris reproduction steps please?
We have integration tests for android:
webcrypto.dart/.github/workflows/test.yml
Lines 117 to 139 in 5e6d20f
Could we reproduce this by trying to build the example/
app in release mode?
Do we need to upgrade the example/
app to reproduce this?
I could probably use some help here.
What are the changes required here? (happy to take PRs, ping me on any PRs)
Will those changes have implications on people using an older gradle version? (if so this needs to be documented in the CHANGELOG
before we ship any changes).
from webcrypto.dart.
hi @jonasfj, can't really test it right now, but my thinking is the following:
replication steps
- in example/
- in android/build.gradle change classpath 'com.android.tools.build:gradle:7.1.2' to 'com.android.tools.build:gradle:8.2.2'
- in android/gradle/wrapper/gradle-wrapper.properties change distributionUrl=https://services.gradle.org/distributions/gradle-7.4-all.zip to distributionUrl=https://services.gradle.org/distributions/gradle-8.2-all.zip
compiling now should give you the same error.
To fix it, the first I'd do would be to add a namespace line in the android/build.gradle of the plugin AND the example (eg like here: https://github.com/flutter/packages/blob/0af905d779d52fc81ffc239c211e8c5956154f34/packages/path_provider/path_provider_android/android/build.gradle#L27)
And that should theoritically get rid of the error
from webcrypto.dart.
Okay, still unclear if it'll affect people using older versions of gradle.
I see new flutter templates have android/build.gradle
with:
if (project.android.hasProperty("namespace")) {
namespace 'com.example.mypkg'
}
We should probably investigate this further.
from webcrypto.dart.
Yes, this is because older versions of gradle (<4.2) do not support the namespace property and thus would fail to build (unknown property 'namespace').
From the offically maintained flutter packages, I can understand this is the way to go now.
Relevant PRs:
flutter/packages@6284c2d
(bulk adds namespace to all packages)
flutter/packages@a86beaf
(bulk conditionalizes namespace, 3 days apart)
My point is it looks safe, since all flutter packages do it anyway, but that's as far I can help I think.
from webcrypto.dart.
Related Issues (20)
- Make dartdoc examples self-contained. HOT 1
- Documentation for AES-GCM should discourage AES-192 and encourage nonce size 96 (12 bytes) HOT 1
- Add .toString() methods on all private classes HOT 7
- Avoid @sealed annotation, using `final class` for everything HOT 3
- Validate JWK for HmacSecretKey Class HOT 2
- Upgrade BoringSSL
- Declare privacy manifest file for Apple HOT 4
- Consider using [!NOTE] blockquote for browser/platform compatibility notes HOT 10
- Re-enable `flutter test --platform chrome` on Windows
- Migrate away from imperative apply of Flutter's Gradle plugins
- Tests if P-521 works on Safari
- Document the maximum length in EcdhPrivateKey.deriveBits for each curve HOT 1
- Add test coverage collection with coveralls
- error.0400008d.RSA routines.OPENSSL_internal.TOO_MANY_ITERATIONS HOT 2
- Upgrade ffigen HOT 1
- Upgrade flutter_lints
- debug intermittent iOS integration tests HOT 1
- Figure out how to enable LTO on Android
- Give access to the authorization tag in AES-GCM mode HOT 2
- EcdsaPrivateKey.importRawKey unavailable HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webcrypto.dart.